project/templates/registration/download-csv.html
author Parth buch <parth.buch.115@gmail.com>
Sat, 01 Oct 2011 03:59:03 +0530
branch2011
changeset 429 cde70fd3073c
parent 96 178b89a3ca4f
permissions -rw-r--r--
changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages

{% extends "admin/base_site.html" %}

{% block title %}Download Registrations{% endblock %}

{% block content %}
<h1>Edit Registration</h1>

{% include '_errors.html' %}

<form action=""
      method="post">
    <fieldset>
        <legend>Select Registrations</legend>
        <table class="scipycon-default">
            {{ form }}
        </table>
        <button class="button left"
                type="submit">
            Submit
        </button>
    </fieldset>
</form>

{% if no_results %}
<p>{{ no_results }}</p>
{% endif %}
{% if results %}
<table>
{% for reg in results %}
<tr>
    <td>{{reg.registrant.get_full_name }}</td>
    <td>{{reg.registrant.email }}</td>
    <td>{{reg.amount }}</td>
    <td>{{reg.payment }}</td>
    <td>{{reg.party }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% endblock content %}