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/form_input.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 servo/templates/snippets/form_input.html (limited to 'servo/templates/snippets/form_input.html') 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 %} +
-- cgit v1.2.3