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/form_field_snippet.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 servo/templates/form_field_snippet.html (limited to 'servo/templates/form_field_snippet.html') diff --git a/servo/templates/form_field_snippet.html b/servo/templates/form_field_snippet.html new file mode 100755 index 0000000..c4d1ab7 --- /dev/null +++ b/servo/templates/form_field_snippet.html @@ -0,0 +1,30 @@ +{% load i18n %} +{% load servo_tags %} +
+{% if field|widget_is:"CheckboxInput" %} +
+ +
+{% elif field|widget_is:"CheckboxSelectMultiple" %} + +
+ {{ field }} +
+{% else %} + +
+ {{ field }} + {% if field.help_text %} + {% trans field.help_text %} + {% endif %} + {% for e in field.errors %} + {{ e }} + {% endfor %} +
+{% endif %} +
-- cgit v1.2.3