summaryrefslogtreecommitdiffstats
path: root/apps/it/templates/list_issues.html
diff options
context:
space:
mode:
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 %}