From 63b0fc6269b38edf7234b9f151b80d81f614c0a3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 4 Aug 2015 10:11:24 +0300 Subject: Initial commit First public commit --- servo/templates/snippets/alert.html | 1 + servo/templates/snippets/control_group.html | 3 +++ servo/templates/snippets/dropdown.html | 11 +++++++++++ servo/templates/snippets/dropdown_menu.html | 5 +++++ servo/templates/snippets/error_modal.html | 10 ++++++++++ servo/templates/snippets/filtering_form.html | 15 +++++++++++++++ servo/templates/snippets/form_field.html | 12 ++++++++++++ servo/templates/snippets/form_field_label.html | 1 + servo/templates/snippets/form_input.html | 22 ++++++++++++++++++++++ servo/templates/snippets/modal.html | 14 ++++++++++++++ 10 files changed, 94 insertions(+) create mode 100644 servo/templates/snippets/alert.html create mode 100755 servo/templates/snippets/control_group.html create mode 100755 servo/templates/snippets/dropdown.html create mode 100755 servo/templates/snippets/dropdown_menu.html create mode 100755 servo/templates/snippets/error_modal.html create mode 100755 servo/templates/snippets/filtering_form.html create mode 100755 servo/templates/snippets/form_field.html create mode 100755 servo/templates/snippets/form_field_label.html create mode 100755 servo/templates/snippets/form_input.html create mode 100755 servo/templates/snippets/modal.html (limited to 'servo/templates/snippets') diff --git a/servo/templates/snippets/alert.html b/servo/templates/snippets/alert.html new file mode 100644 index 0000000..9cc4f50 --- /dev/null +++ b/servo/templates/snippets/alert.html @@ -0,0 +1 @@ + diff --git a/servo/templates/snippets/control_group.html b/servo/templates/snippets/control_group.html new file mode 100755 index 0000000..7e61d6a --- /dev/null +++ b/servo/templates/snippets/control_group.html @@ -0,0 +1,3 @@ +
+ {{ field }} +
diff --git a/servo/templates/snippets/dropdown.html b/servo/templates/snippets/dropdown.html new file mode 100755 index 0000000..70ee226 --- /dev/null +++ b/servo/templates/snippets/dropdown.html @@ -0,0 +1,11 @@ +
+ + + {{ menu.title }} + + +
diff --git a/servo/templates/snippets/dropdown_menu.html b/servo/templates/snippets/dropdown_menu.html new file mode 100755 index 0000000..c57b563 --- /dev/null +++ b/servo/templates/snippets/dropdown_menu.html @@ -0,0 +1,5 @@ + diff --git a/servo/templates/snippets/error_modal.html b/servo/templates/snippets/error_modal.html new file mode 100755 index 0000000..c63010a --- /dev/null +++ b/servo/templates/snippets/error_modal.html @@ -0,0 +1,10 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% trans "An error occured..." %} +{% endblock header %} + +{% block body %} + {{ error }} +{% endblock body %} diff --git a/servo/templates/snippets/filtering_form.html b/servo/templates/snippets/filtering_form.html new file mode 100755 index 0000000..b2ce391 --- /dev/null +++ b/servo/templates/snippets/filtering_form.html @@ -0,0 +1,15 @@ +{% load i18n %} +
+
{% csrf_token %} + {% for field in form %} +
+ +
{{ field }}
+
+ {% endfor %} +


+
+ +
+
+
diff --git a/servo/templates/snippets/form_field.html b/servo/templates/snippets/form_field.html new file mode 100755 index 0000000..59578f4 --- /dev/null +++ b/servo/templates/snippets/form_field.html @@ -0,0 +1,12 @@ +
+ +
+ {{ field }} + {% if field.help_text %} + {{ field.help_text }} + {% endif %} + {% for e in field.errors %} + {{ e }} + {% endfor %} +
+
diff --git a/servo/templates/snippets/form_field_label.html b/servo/templates/snippets/form_field_label.html new file mode 100755 index 0000000..0a8d4b1 --- /dev/null +++ b/servo/templates/snippets/form_field_label.html @@ -0,0 +1 @@ + diff --git a/servo/templates/snippets/form_input.html b/servo/templates/snippets/form_input.html new file mode 100755 index 0000000..1d686d0 --- /dev/null +++ b/servo/templates/snippets/form_input.html @@ -0,0 +1,22 @@ +{% load i18n %} +{% load servo_tags %} + +
+ {% if field|widget_is:"CheckboxInput" %} +
+ +
+ {% else %} +
+ {{ field }} + {% if field.help_text %} + {% trans field.help_text %} + {% endif %} + {% for e in field.errors %} + {{ e }} + {% endfor %} +
+ {% endif %} +
diff --git a/servo/templates/snippets/modal.html b/servo/templates/snippets/modal.html new file mode 100755 index 0000000..dfa552a --- /dev/null +++ b/servo/templates/snippets/modal.html @@ -0,0 +1,14 @@ +{% load i18n %} + + + -- cgit v1.2.3