Skip to content

Commit

Permalink
Add files via upload (#233)
Browse files Browse the repository at this point in the history
Added markdown processing to checkbox label (if markdown is enabled)
  • Loading branch information
hgiritzer authored and rhukster committed Mar 20, 2018
1 parent b91c0c2 commit 3c27191
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion templates/forms/fields/checkbox/checkbox.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
{% if required %}required="required"{% endif %}
{% endblock %}
/>
<label style="display:inline;" class="inline" for="{{ id|e }}">{{ field.label|t|e }} {{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}</label>
<label style="display:inline;" class="inline" for="{{ id|e }}">
{% if field.markdown %}
{{ field.label|t|markdown(false) }}
{% else %}
{{ field.label|t|e }}
{% endif %}
{{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}
</label>
</div>
{% endblock %}

0 comments on commit 3c27191

Please sign in to comment.