Change form structure and add relevant CSS rules
This commit is contained in:
parent
7880168526
commit
aea6d577cb
@ -212,7 +212,11 @@ text-align: center;
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form_field_label,.form_field_input {
|
.form_field_input {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form_field_label {
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,18 +18,16 @@
|
|||||||
|
|
||||||
{# Generically render a field #}
|
{# Generically render a field #}
|
||||||
{% macro render_field_div(field) %}
|
{% macro render_field_div(field) %}
|
||||||
<div class="form_field_box">
|
<p class="form_field_label"><label for="{{ field.name }}">{{ _(field.label.text) }}</label></p>
|
||||||
<div class="form_field_label">{{ _(field.label.text) }}</div>
|
<div class="form_field_input">
|
||||||
<div class="form_field_input">{{ field }}</div>
|
{{ field }}
|
||||||
{%- if field.errors -%}
|
{%- if field.errors -%}
|
||||||
{% for error in field.errors %}
|
{% for error in field.errors %}
|
||||||
<div class="form_field_error">
|
<p class="form_field_error">{{ error }}</p>
|
||||||
{{ error }}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{% if field.description -%}
|
{% if field.description -%}
|
||||||
<div class="form_field_description">{{ _(field.description) }}</div>
|
<p class="form_field_description">{{ _(field.description) }}</p>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</div>
|
</div>
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user