File diff b8a626b955c5 → e340f18ec9fa
conservancy/usethesource/templates/usethesource/download.html
Show inline comments
...
 
@@ -5,13 +5,19 @@
 

	
 
  <section class="pa2 mt4 mb5">
 
    <h2 class="f2 lh-title ttu mt0">Download</h2>
 
    <p><strong>File</strong>: {{ download_url }}</p>
 

	
 
    <p>By downloading this, you agree to use it only for the purposes of GPL compliance checking, unless otherwise permitted by the license.</p>
 

	
 
    <div style="display: flex">
 
      <a href="{% url 'usethesource:candidate' slug=candidate.slug %}" class="white bg-silver dib pv2 ph3 mb2 mr2">Back</a>
 
      <a href="{{ download_url }}" class="white bg-green dib pv2 ph3 mb2">Download</a>
 
    </div>
 
    <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 %}