Semantic UI version

This commit is contained in:
2018-07-13 10:19:37 +02:00
parent b82cacc665
commit b54674c703
18 changed files with 594 additions and 143 deletions

View File

@@ -1,21 +1,20 @@
{% macro field(field, inline=false) %}
<div class="{% if inline %}inline {% endif %}field">
{% if field.errors %}
{% for error in field.errors %}
{{ error }}
{{ error }}
{% endfor %}
<br>
<br>
{% endif %}
{% if field.widget.input_type != 'checkbox' %}
{{ field.label }}
{{ field.label }}
{% endif %}
{{ field }}
{{ field }}
{% if field.widget.input_type == 'checkbox' %}
{{ field.label }}
{{ field.label }}<br>
{% endif %}
{% if not inline %}
<br>
{% endif %}
{% if field.description %}
{{ field.description }}
{{ field.description }}
{% endif %}
</div>
{% endmacro %}