flask-chartist-example/app/templates/_render_field.html
2017-05-19 16:02:30 -05:00

15 lines
No EOL
461 B
HTML

{% macro render_field(field) %}
<div class="form-group">
<label for="{{ field.name }}" class="col-lg-2-control-label"> {{ field.label.text }}</label>
<div class="col-lg-10">
{{ field(class_='form.control;, **kwargs')|safe }}
<ul>
{% for error in field.errors %}
<li style='color:red;' > {{ error }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endmacro %}