Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#2752] Add math captcha to contactform #1417

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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">
pi-sigma marked this conversation as resolved.
Show resolved Hide resolved
{{ 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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, let's rename it :-)

</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 %}
pi-sigma marked this conversation as resolved.
Show resolved Hide resolved

{% 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
Loading