Skip to content
Snippets Groups Projects
Commit 2805d5d1 authored by Julian Pustkuchen's avatar Julian Pustkuchen Committed by Thomas Frobieter
Browse files

Issue #3357694: Use label & description for captcha label & description instead of custom structure

parent 74595a1b
No related branches found
Tags 2.0.0-beta2
No related merge requests found
......@@ -29,19 +29,17 @@ set classes = [
{% if is_visible %}
{% block captcha_display %}
<fieldset {{ attributes.addClass(classes) }}>
{% if (title or description) %}
{% if title %}
<legend class="captcha__title">
{{ title }}
</legend>
{% endif %}
{% if description %}
<div class="captcha__description">{{ description }}</div>
{% endif %}
{% if title %}
<label class="captcha__title js-form-required form-required">
{{ title }}
</label>
{% endif %}
<div class="captcha__element">
{{ element }}
</div>
{% if description %}
<div class="captcha__description description">{{ description }}</div>
{% endif %}
</fieldset>
{% endblock %}
{% else %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment