dxdy/app/templates/macros/render_field.html

12 lines
275 B
HTML

{% macro render_text_field(field) %}
<div class="form__group">
{{ field.label(class_="form__label") }}
{{ field(class_="form__field")}}
{%- for error in field.errors %}
<span class="form__error">{{ error }}</span>
{% endfor %}
</div>
{% endmacro %}