initial commit
This commit is contained in:
parent
95d161f57b
commit
dd9a32ca88
12 changed files with 7620 additions and 0 deletions
15
app/templates/_render_field.html
Normal file
15
app/templates/_render_field.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{% 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue