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

{% block box_name %}Dashboard{% endblock %}

{% block box_content %}
    <h1 class="home">Quick-Response Tool</h1>
    <li><em>Click on a brochure name to email a personalised document:</em></li>
    <ul>
    {% for pdf in pdfs %}
        <li><a href="/brochure/{{ pdf.slug }}/?download_display=3">{{ pdf }}</a></li>
    {% endfor %}
    </ul>

    <h1 class="home">Statistics</h1>
    <ul class="fix-inputs">
    <li><em>Usage data will be included here when it is configured.</em></li>
    </ul>

    <h1 class="home">Direct links</h1>
    <ul class="fix-inputs">
    <li><em>The following static links to predefined brochures are available:</em></li>
    {% for pdf in pdfs%}
    {% for subset in subsets %}
        {% if subset.pdf_id == pdf.id %}
        <li>{{pdf.name}}: {{subset.name}}</li>
        <li><a href="/brochure/{{pdf.slug}}/api/?subset={{subset.slug}}">{{request.META.HTTP_HOST}}/brochure/{{pdf.slug}}/api/?subset={{subset.slug}}</a></li>
        {% endif %}
    {% endfor %}
    {% endfor %}
    </ul>

{% endblock %}
