summaryrefslogtreecommitdiffstats
path: root/apps/it/templates/list_issues.html
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2014-02-19 09:29:17 +0200
committerFilipp Lepalaan <f@230.to>2014-02-19 09:29:17 +0200
commitcfc7c3f52544af8a71d3fa3988a06fee200d2c24 (patch)
treef5eecbb882aea800e9b0707a831f6569de07a853 /apps/it/templates/list_issues.html
parentd3e089b71b64cfc1f9f96be141f41806ce5b9e77 (diff)
downloadpudding-cfc7c3f52544af8a71d3fa3988a06fee200d2c24.tar.gz
pudding-cfc7c3f52544af8a71d3fa3988a06fee200d2c24.tar.bz2
pudding-cfc7c3f52544af8a71d3fa3988a06fee200d2c24.zip
better
Diffstat (limited to 'apps/it/templates/list_issues.html')
-rw-r--r--apps/it/templates/list_issues.html30
1 files changed, 22 insertions, 8 deletions
diff --git a/apps/it/templates/list_issues.html b/apps/it/templates/list_issues.html
index c52058d..56d05b0 100644
--- a/apps/it/templates/list_issues.html
+++ b/apps/it/templates/list_issues.html
@@ -1,12 +1,26 @@
{% extends "default.html" %}
+{% load bootstrap3 %}
+{% load i18n %}
{% block main %}
- <table class="table">
- {% for i in issues %}
- <tr>
- <td><a href="{% url 'view_issue' i.pk %}">{{ i.description }}</a></td>
- <td><a class="btn btn-default btn-sm metoo" href="{% url 'metoo' i.pk 1 %}">Me too!</a></td>
- </tr>
- {% endfor %}
- </table>
+<ul class="nav nav-tabs">
+{% for k, v in states %}
+ <li{%if k == state %} class="active"{% endif %}><a href="?state={{ k }}">{{ v }}</a></li>
+{% endfor %}
+</ul>
+<table class="table">
+ {% for i in issues %}
+ <tr>
+ <td><a href="{% url 'view_issue' i.pk %}">{{ i.description }}</a></td>
+ </tr>
+ {% endfor %}
+</table>
{% endblock main %}
+
+{% block inspector %}
+<form action="" method="post" class="form">
+ {% csrf_token %}
+ {% bootstrap_form form %}
+ <button type="submit" class="btn btn-primary">{% trans "Add Issue" %}</button>
+</form>
+{% endblock inspector %}