Style fields with labels

This commit is contained in:
benjamin melançon 2018-10-26 00:59:58 -04:00
parent bf392eb2c7
commit 4a8191301b

View file

@ -72,16 +72,16 @@
{{ item.content}}
{% endfor %}
{% else %}
<div{{ attributes }}>
<div{{ title_attributes }}>{{ label }}</div>
<p{{ attributes }}>
<label{{ title_attributes }}>{{ label }}</label>
{% if multiple and use_item_wrapper %}
<div>
{% endif %}
{% for item in items %}
{{ helpers.render_item(item, item_classes, use_item_wrapper) }}
<strong>{{ helpers.render_item(item, item_classes, use_item_wrapper) }}</strong>
{% endfor %}
{% if multiple and use_item_wrapper %}
</div>
{% endif %}
</div>
</p>
{% endif %}