1
0
mirror of https://github.com/moepman/bk-dss synced 2024-12-23 01:24:26 +01:00
bk-dss/templates/_helpers.html

15 lines
588 B
HTML
Raw Normal View History

{% macro render_field(field) %}
2016-03-22 13:23:10 +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 %}
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
{{ error }}
{% endfor %}
</div>
2016-03-21 23:16:50 +01:00
{%- 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>
{%- endmacro %}