This commit is contained in:
Ole Vik
2019-03-12 19:10:26 +01:00
committed by Andy Miller
parent f7b3fc37b2
commit 030e4ae073

View File

@@ -8,8 +8,10 @@
{% block field %}
{% block label %}
{% if field.label %}
{% set hint = field.help ? 'data-hint="' ~ field.help|tu|raw ~ '"': '' %}
<div class="form-label form-field hint--bottom" {{ hint }}>{{ field.label|tu|raw }}</div>
{% 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>
{% endif %}
{% endblock %}
<div class="form-field {{ field.classes|default('') }}">