Commits

John Costa committed d2a9f74

add template

  • Participants
  • Parent commits c479245

Comments (0)

Files changed (1)

feature_request/templates/feature_request/tags/list_user_requests.html

+<table border='1'>
+    <caption>My Requests</caption>
+    <thead>
+        <tr>
+            <th>Date Requested</th>
+            <th>Member</th>
+            <th>Requested Feature</th>
+            <th>Status</th>
+            <th>Score</th>
+            <th>Vote</th>
+            <th>Action</th>
+        </tr>
+    </thead>
+    <tbody>
+    {% for feature in user_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>
+            <td>
+                {% if feature.is_editable %}
+                    <a href="{% url feature_request_delete feature.id %}">Delete</a>&nbsp;
+                    <a href="{% url feature_request_edit feature.id %}" >Edit</a>&nbsp;
+                    <a href="{% url feature_request_submit feature.id %}" >Submit</a>
+                {% endif %}
+            </td>
+        </tr>
+    {% endfor %}
+    </tbody>
+</table>