First shot at an AdminLTE dashboard

This commit is contained in:
Pierre Jaury
2016-03-19 20:37:48 +01:00
parent 3302921cee
commit 4576e1f5c2
48 changed files with 1204 additions and 60 deletions

View File

@@ -0,0 +1,13 @@
{% macro render_field(field, label_visible=true) -%}
<div class="form-group {% if field.errors %}has-error{% endif %} {{ kwargs.pop('class_', '') }}">
{% if field.type != 'HiddenField' and label_visible %}
<label for="{{ field.id }}" class="control-label">{{ field.label }}</label>
{% endif %}
{{ field(class_='form-control', **kwargs) }}
{% if field.errors %}
{% for e in field.errors %}
<p class="help-block">{{ e }}</p>
{% endfor %}
{% endif %}
</div>
{%- endmacro %}