Skip to content

Commit

Permalink
Merge pull request #1417 from maykinmedia/task/2752-captcha
Browse files Browse the repository at this point in the history
[#2752] Add math captcha to contactform
  • Loading branch information
alextreme authored Oct 3, 2024
2 parents 1ce73db + cd85a8d commit f1745d2
Show file tree
Hide file tree
Showing 9 changed files with 306 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,28 @@
{% input form_object.phonenumber %}
{% endif %}
{% input form_object.question %}
{% form_actions primary_text=_("Verzenden") primary_icon="arrow_forward" %}

{% if form_object.captcha %}
<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.field.question }}</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" fullwidth=True %}

{% endrender_form %}
</div>
{% endrender_column %}
Expand Down
Binary file modified src/open_inwoner/conf/locale/nl/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit f1745d2

Please sign in to comment.