Source

django-feature-request / templates / feature_request / tags / list_requests.html

Full commit
<table border='1'>
    <caption>All Requests</caption>
    <thead>
        <tr>
            <th>Date Requested</th>
            <th>Member</th>
            <th>Requested Feature</th>
            <th>Status</th>
            <th>Score</th>
            <th>Vote</th>
        </tr>
    </thead>
    <tbody>
    {% for feature in feature_requests %}
        <tr>
            <td>{{feature.create_date|date:"M dS Y"}}</td><td>{{feature.member}}</td><td>{{feature.request_title|linebreaksbr}}</td>
            <td>{% if feature.is_complete %}Complete
                    {% if feature.complete_date %}({{feature.complete_date}}){% endif %}
                    {% if feature.complete_comments %}<br />{{feature.complete_comments|linebreaksbr}}{% endif %}
                {% else %}
                    {{  feature.status }}
                {% endif %}
            </td>
            <td>{{ feature.score }}</td>
            <td>
                <form action="{% url feature_request_vote feature.id "up" %}" method="post">{% csrf_token %}<input type="submit" value="+" /></form>
                <form action="{% url feature_request_vote feature.id "down" %}" method="post">{% csrf_token %}<input type="submit" value="-" /></form>
                <form action="{% url feature_request_vote feature.id "clear" %}" method="post">{% csrf_token %}<input type="submit" value="clear" /></form>
            </td>            
        </tr>
    {% endfor %}
    </tbody>
</table>