From d3871bb113f5f9851a3a7a965a9f46f5a605b365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Tue, 7 Nov 2017 23:56:45 +0100 Subject: [PATCH] add missing templates --- cfp/templates/cfp/admin/category_form.html | 33 ++++++++++++++++++++++ cfp/templates/cfp/admin/category_list.html | 26 +++++++++++++++++ cfp/templates/cfp/admin/tag_form.html | 33 ++++++++++++++++++++++ cfp/templates/cfp/admin/tag_list.html | 26 +++++++++++++++++ 4 files changed, 118 insertions(+) create mode 100644 cfp/templates/cfp/admin/category_form.html create mode 100644 cfp/templates/cfp/admin/category_list.html create mode 100644 cfp/templates/cfp/admin/tag_form.html create mode 100644 cfp/templates/cfp/admin/tag_list.html diff --git a/cfp/templates/cfp/admin/category_form.html b/cfp/templates/cfp/admin/category_form.html new file mode 100644 index 0000000..1fb03bb --- /dev/null +++ b/cfp/templates/cfp/admin/category_form.html @@ -0,0 +1,33 @@ +{% extends 'cfp/admin/base.html' %} + +{% load bootstrap3 i18n %} + +{% block categoriestab %} class="active"{% endblock %} + +{% block css %} +{{ block.super }} +{{ form.media.css }} +{% endblock %} + +{% block content %} + +

+ {% if tag %} + {% trans "Edit category" %} + {% else %} + {% trans "New category" %} + {% endif %} +

+ +
+
+{% include "_form.html" %} +
+
+ +{% endblock %} + +{% block js_end %} +{{ block.super }} +{{ form.media.js }} +{% endblock %} diff --git a/cfp/templates/cfp/admin/category_list.html b/cfp/templates/cfp/admin/category_list.html new file mode 100644 index 0000000..3fec586 --- /dev/null +++ b/cfp/templates/cfp/admin/category_list.html @@ -0,0 +1,26 @@ +{% extends 'cfp/admin/base.html' %} + +{% load bootstrap3 cfp_tags i18n %} + +{% block categoriestab %} class="active"{% endblock %} + +{% block content %} + +

{% trans "Categories" %}

+ +

{% trans "Add a category" %}

+ +

+ +{% endblock %} diff --git a/cfp/templates/cfp/admin/tag_form.html b/cfp/templates/cfp/admin/tag_form.html new file mode 100644 index 0000000..79d7d1c --- /dev/null +++ b/cfp/templates/cfp/admin/tag_form.html @@ -0,0 +1,33 @@ +{% extends 'cfp/admin/base.html' %} + +{% load bootstrap3 i18n %} + +{% block tagstab %} class="active"{% endblock %} + +{% block css %} +{{ block.super }} +{{ form.media.css }} +{% endblock %} + +{% block content %} + +

+ {% if tag %} + {% trans "Edit tag" %} + {% else %} + {% trans "New tag" %} + {% endif %} +

+ +
+
+{% include "_form.html" %} +
+
+ +{% endblock %} + +{% block js_end %} +{{ block.super }} +{{ form.media.js }} +{% endblock %} diff --git a/cfp/templates/cfp/admin/tag_list.html b/cfp/templates/cfp/admin/tag_list.html new file mode 100644 index 0000000..26455c9 --- /dev/null +++ b/cfp/templates/cfp/admin/tag_list.html @@ -0,0 +1,26 @@ +{% extends 'cfp/admin/base.html' %} + +{% load bootstrap3 cfp_tags i18n %} + +{% block tagstab %} class="active"{% endblock %} + +{% block content %} + +

{% trans "Tags" %}

+ +

{% trans "Add a tag" %}

+ +

+ +{% endblock %}