{% extends "binder/base.html" %}

{% block title %}Download your eBrochure{% endblock %}
{% block box_name %}Your brochure is ready  - {{ pdf_size }}{% endblock %}

{% block extrajs %}
  <script type="text/javascript" src="{{ MEDIA_URL }}binder/js/flash_detect_min.js"></script> 
  <script type="text/javascript" src="{{ MEDIA_URL }}binder/js/download.js"></script> 
{% endblock %}

{% block box_content %}
  <form class="download_form" method="POST">
    {% csrf_token %}
    <ul class="fix-inputs">
      <li>
          {{ form.action.label }}
      </li>
      {{ form.action }}
    </ul>
    <div id="email" class="hide">
      <ul>
        {% with form.email_to as field %}
          {% include "binder/field_as_li.html" %}
        {% endwith %}
        {% with form.email_from as field %}
          {% include "binder/field_as_li.html" %}
        {% endwith %}
        {% with form.email_body as field %}
          {% include "binder/field_as_li.html" %}
        {% endwith %}
        {% if not user.username %}
            {% with form.recaptcha as field %}
              {% include "binder/field_as_li.html" %}
            {% endwith %}
        {% endif %}

      </ul>
    </div>
    <div class="submit"><input id="submit" type="submit" value="Download PDF"></div>
  </form>
{% endblock %}
