{% extends "includes/forms.html" %} {% macro some_html_tip() %}

{# L10n: {0} is a list of HTML tags. #} {{ _('Some HTML supported.') }}

{% endmacro %} {% macro empty_unless(truthy) %} {% if truthy %} {{ caller() }} {% else %} {{ _('None') }} {% endif %} {% endmacro %} {% macro flags(text, element, editable, alt_text=False) %} {% if editable %}
{{ element }} {{ element.errors }}
{% elif element %} {{ text }} {% elif alt_text %} {# This is what's shown if the element is false #} {# Defaults to nothing #} {{ alt_text }} {% endif %} {% endmacro %} {% macro compat(form, is_extra_form=False) %} {{ form.app.pretty }}
{{ form.min }} {{ form.non_field_errors() }} {{ form.min.errors }}
{{ form.max }} {{ form.max.errors }}
{{ form.application }} {{ form.id }} x
{% endmacro %} {% macro select_cats(max, form, webapp=False) %}
{{ form.application }} {{ form.categories }} {{ form.categories.errors }}
{% endmacro %}