2015-06-17 20:13:55 +02:00
|
|
|
{% macro render_field(field) %}
|
2016-03-21 23:16:50 +01:00
|
|
|
<div class="form-group {% if field.errors %}has-error{% endif %}">{{ field.label(class_="control-label col-sm-3") }}<div class="col-sm-5">{{ field(class_="form-control") }}</div>{% for error in field.errors %}[ {{ error }} ]{% endfor %}</div>
|
|
|
|
{%- endmacro %}
|
|
|
|
|
|
|
|
{% macro render_button(button) %}
|
|
|
|
<div class="form-group"><div class="col-sm-offset-3 col-sm-5">{{ button(class_="btn btn-primary") }}</div></div>
|
2015-06-17 20:13:55 +02:00
|
|
|
{%- endmacro %}
|