add span with required sign to editor field label (#1748)

This commit is contained in:
sque89
2019-10-23 22:47:37 +02:00
committed by Andy Miller
parent e60ff04bc5
commit 365ab2e062

View File

@@ -11,7 +11,10 @@
{% if field.help %}
{% set hint = 'data-hint="' ~ field.help|tu|raw ~ '"' %}
{% endif %}
<div class="form-label form-field hint--bottom" {{ hint|raw }}>{{ field.label|tu|raw }}</div>
<div class="form-label form-field hint--bottom" {{ hint|raw }}>
{{ field.label|tu|raw }}
{{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}
</div>
{% endif %}
{% endblock %}
<div class="form-field {{ field.classes|default('') }}">