|
|
@ -31,14 +31,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
|
|
|
|
{% macro form_individual_field(field, prepend='', append='', label=True) %}
|
|
|
|
{% macro form_individual_field(field, prepend='', append='', label=True, class_="") %}
|
|
|
|
{% if field.type == "BooleanField" %}
|
|
|
|
{% if field.type == "BooleanField" %}
|
|
|
|
{{ field(**kwargs) }}<span> </span>
|
|
|
|
{{ field(**kwargs) }}<span> </span>
|
|
|
|
{{ field.label if label else '' }}
|
|
|
|
{{ field.label if label else '' }}
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
|
{{ field.label if label else '' }}{{ form_field_errors(field) }}
|
|
|
|
{{ field.label if label else '' }}{{ form_field_errors(field) }}
|
|
|
|
{% if prepend or append %}<div class="input-group">{% endif %}
|
|
|
|
{% if prepend or append %}<div class="input-group">{% endif %}
|
|
|
|
{{ prepend|safe }}{{ field(class_="form-control", **kwargs) }}{{ append|safe }}
|
|
|
|
{{ prepend|safe }}{{ field(class_="form-control " + class_, **kwargs) }}{{ append|safe }}
|
|
|
|
{% if prepend or append %}</div>{% endif %}
|
|
|
|
{% if prepend or append %}</div>{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|
|
|
|
{% endmacro %}
|
|
|
|