diff --git a/gas/templates/gas/tags/forms/checkbox.html b/gas/templates/gas/tags/forms/checkbox.html new file mode 100644 index 0000000..9cac537 --- /dev/null +++ b/gas/templates/gas/tags/forms/checkbox.html @@ -0,0 +1,12 @@ +
+ + {% if field.errors %}{{ field.errors }}{% endif %} + {% if field.help_text %}

{{ field.help_text }}

{% endif %} +
diff --git a/gas/templates/gas/tags/forms/errors.html b/gas/templates/gas/tags/forms/errors.html new file mode 100644 index 0000000..f4eb242 --- /dev/null +++ b/gas/templates/gas/tags/forms/errors.html @@ -0,0 +1,14 @@ +{% load i18n %} +{% if form.errors %} +
+ {% for error in form.non_field_errors %} +
{{ error|striptags }}
+ {% endfor %} + {% for field in form %} + {% if field.errors %} +
{{ field.label }}
+
{{ field.errors|striptags }}
+ {% endif %} + {% endfor %} +
+{% endif %} diff --git a/gas/templates/gas/tags/forms/field.html b/gas/templates/gas/tags/forms/field.html new file mode 100644 index 0000000..9d7306c --- /dev/null +++ b/gas/templates/gas/tags/forms/field.html @@ -0,0 +1,17 @@ +{% load form_tags %} +
+ + {% add_widget_attrs field placeholder=field.label %} + {{ field }} + + {% if add_another_url %} + + {% endif %} + + {% if field.help_text %}
{{ field.help_text|safe }}
{% endif %} + {% if field.errors %}{{ field.errors }}{% endif %} +
diff --git a/gas/templates/gas/tags/navigation.html b/gas/templates/gas/tags/navigation.html new file mode 100644 index 0000000..24941db --- /dev/null +++ b/gas/templates/gas/tags/navigation.html @@ -0,0 +1,18 @@ +{% load gas_tags %} + +{% for entry in menu %} +
  • + {% if entry.url %} + {{ entry.label }} + {% else %} + {{ entry.label }} + {% endif %} + {% with children=entry|get_children:user_roles %} + {% if children %} + + {% endif %} + {% endwith %} +
  • +{% endfor %}