Files @ e340f18ec9fa
Branch filter:

Location: website/conservancy/usethesource/templates/usethesource/download.html

bsturmfels
usethesource: Require agreement to download
{% extends "usethesource/base.html" %}

{% block content %}
  {{ block.super }}

  <section class="pa2 mt4 mb5">
    <h2 class="f2 lh-title ttu mt0">Download</h2>

    <form method="post" action="{% url 'usethesource:download' slug=candidate.slug download_type=download_type %}">
      {% csrf_token %}
      {% if form.agree.errors %}
        <div class="br2 bg-washed-red ph4 pv3 mb2">{{ form.agree.errors }}</div>
      {% endif %}
      <div class="mb3" style="display: flex; align-items: start">
        <span class="mr2">{{ form.agree }}</span> {{ form.agree.label_tag }}
      </div>
      <div style="display: flex">
        <a href="{% url 'usethesource:candidate' slug=candidate.slug %}" class="b white bg-silver dib pv2 ph3 mb2 mr2">Back</a>
        <button type="submit" class="b white bg-green dib pv2 ph3 bn mb2">Download</button>
      </div>
    </form>
  </section>
{% endblock content %}