aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/admin/checklist
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
commit63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch)
tree555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/admin/checklist
downloadServo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip
Initial commit
First public commit
Diffstat (limited to 'servo/templates/admin/checklist')
-rw-r--r--servo/templates/admin/checklist/form.html31
-rw-r--r--servo/templates/admin/checklist/index.html6
2 files changed, 37 insertions, 0 deletions
diff --git a/servo/templates/admin/checklist/form.html b/servo/templates/admin/checklist/form.html
new file mode 100644
index 0000000..3b44576
--- /dev/null
+++ b/servo/templates/admin/checklist/form.html
@@ -0,0 +1,31 @@
+{% extends "admin/checklist/index.html" %}
+{% load i18n %}
+
+{% block third_column %}
+<form method="post" action="" accept-charset="utf-8" class="form-horizontal">
+ {% csrf_token %}
+ {{ formset.management_form }}
+ <ul class="nav nav-tabs">
+ <li class="active"><a href="#tab1" data-toggle="tab">{% trans "General" %}</a></li>
+ <li><a href="#tab2" data-toggle="tab">{% trans "Tasks" %}</a></li>
+ </ul>
+ <div class="tab-content">
+ <div class="tab-pane active" id="tab1">
+ {% include "form_snippet.html" %}
+ </div>
+ <div class="tab-pane" id="tab2">
+ {% for f in formset %}
+ {% include "form_snippet.html" with form=f %}
+ {% endfor %}
+ </div>
+ </div>
+ <div class="form-actions">
+ {% if checklist.pk %}
+ <a class="btn btn-danger" data-modal="#modal" href="{% url 'admin-delete_checklist' checklist.pk %}">{% trans "Delete" %}</a>
+ {% else %}
+ <a class="btn btn-danger disabled">{% trans "Delete" %}</a>
+ {% endif %}
+ <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
+ </div>
+</form>
+{% endblock third_column %}
diff --git a/servo/templates/admin/checklist/index.html b/servo/templates/admin/checklist/index.html
new file mode 100644
index 0000000..f4a2820
--- /dev/null
+++ b/servo/templates/admin/checklist/index.html
@@ -0,0 +1,6 @@
+{% extends "generic/admin_list.html" %}
+{% load i18n %}
+
+{% block toolbar %}
+ <a class="btn btn-default navbar-btn" href="{% url 'admin-create_checklist' %}"><i class="icon-plus"></i> {% trans "New Checklist" %}</a>
+{% endblock toolbar %}