Skip to content

Commit

Permalink
✨ [#2752] Added styling for captcha and captcha-translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin authored and pi-sigma committed Oct 2, 2024
1 parent 9f8bcd5 commit b400787
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,25 @@
{% input form_object.question %}

{% if form_object.captcha %}
<span class="label__label">
{{ form_object.captcha.label }}<span class="label__label--required"> * </span>
</span>
<span>{{ form_object.captcha_prompt }}</span>
<span>{{ form_object.captcha.question }}</span>
{% field_as_widget form_object.captcha "input" form_id %}
<div class="form__control ">
<div class="captcha">
<label class="label captcha__label">
{{ form_object.captcha.label }}<span class="label__label--required"> * </span>
</label>
<div class="captcha__check">
<div>
<span class="captcha__prompt">{{ form_object.captcha_prompt }}</span>
</div>
<span class="captcha__input">{% field_as_widget form_object.captcha "input" form_id %}</span>
</div>
{% if form_object.captcha.errors %}
{% errors errors=form_object.captcha.errors %}
{% endif %}
</div>
</div>
{% endif %}

{% form_actions primary_text=_("Verzenden") primary_icon="arrow_forward" %}
{% form_actions primary_text=_("Verzenden") primary_icon="arrow_forward" fullwidth=True %}

{% endrender_form %}

Expand Down
Binary file modified src/open_inwoner/conf/locale/nl/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit b400787

Please sign in to comment.