Initial commit
This commit is contained in:
commit
c0b4ca1021
21 changed files with 677 additions and 0 deletions
20
app/templates/bulma_wtf.html
Normal file
20
app/templates/bulma_wtf.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{% macro form_input_field(field) %}
|
||||
<div class="control">
|
||||
{{ field.label(class='label')}}
|
||||
{{ field(class='input' + (' is-danger' if field.errors else ' is_success'), type="text") }}
|
||||
{% for error in field.errors %}
|
||||
<p class="help is-danger">{{ error }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
{% macro form_bool_field(field) %}
|
||||
<div class="control">
|
||||
{{ field.label(class='label')}}
|
||||
{{ field(class='checkbox', type="checkbox") }}
|
||||
{% for error in field.errors %}
|
||||
<p class="help is-danger">{{ error }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue