aboutsummaryrefslogtreecommitdiffstats
path: root/templates/core
diff options
context:
space:
mode:
Diffstat (limited to 'templates/core')
-rw-r--r--templates/core/form.html13
-rw-r--r--templates/core/list.html7
2 files changed, 20 insertions, 0 deletions
diff --git a/templates/core/form.html b/templates/core/form.html
new file mode 100644
index 0000000..4c1fb71
--- /dev/null
+++ b/templates/core/form.html
@@ -0,0 +1,13 @@
+{% extends "manage.html" %}
+{% load bootstrap3 %}
+{% load i18n %}
+
+{% block detail_view %}
+ <form method="post">
+ {% csrf_token %}
+ {% bootstrap_form form %}
+ {% buttons %}
+ <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
+ {% endbuttons %}
+ </form>
+{% endblock detail_view %}
diff --git a/templates/core/list.html b/templates/core/list.html
new file mode 100644
index 0000000..87428c0
--- /dev/null
+++ b/templates/core/list.html
@@ -0,0 +1,7 @@
+{% extends "manage.html" %}
+
+{% block detail_list %}
+{% for i in object_list %}
+ <li><a href="{{ i.get_absolute_url }}">{{ i }}</a></li>
+{% endfor %}
+{% endblock detail_list %}