calendar-social/calsocial/templates/_macros.html

22 lines
464 B
HTML

{% macro field(field, inline=false) %}
{% if field.errors %}
{% for error in field.errors %}
{{ error }}
{% endfor %}
<br>
{% endif %}
{% if field.widget.input_type != 'checkbox' %}
{{ field.label }}
{% endif %}
{{ field }}
{% if field.widget.input_type == 'checkbox' %}
{{ field.label }}
{% endif %}
{% if not inline %}
<br>
{% endif %}
{% if field.description %}
{{ field.description }}
{% endif %}
{% endmacro %}