post_form.html: add data-action parameter to turnstile captcha

This commit is contained in:
Zankaria 2024-07-27 17:34:51 +02:00
parent 67de8df246
commit f3c45073cb
4 changed files with 19 additions and 3 deletions

View file

@ -58,7 +58,7 @@
{{ config.ad.top }}
{% if not no_post_form %}
{% include 'post_form.html' %}
{% include('post_form.html', {form_action_type: 'post-thread'}) %}
{% else %}
{% include 'boardlist.html' %}
{% endif %}

View file

@ -106,6 +106,22 @@
</td>
</tr>
{% endif %}
{% if config.turnstile %}
{% if config.dynamic_captcha %}
<tr id="captcha" style="display: none;">
{% else %}
<tr>
{% endif %}
<th>
{% trans %}Verification{% endtrans %}
{{ antibot.html() }}
</th>
<td>
<div class="cf-turnstile" data-sitekey="{{ config.turnstile_public }}" data-action="{{ form_action_type }}"></div>
{{ antibot.html() }}
</td>
</tr>
{% endif %}
{% if config.securimage %}
<tr>
<th>

View file

@ -28,7 +28,7 @@
<center>[ {% trans 'Create new thread' %} ]</center>
</summary>
<div style="margin: 1em 0;">
{% include 'post_form.html' %}
{% include('post_form.html', {form_action_type: 'post-thread'}) %}
</div>
</details>
{% endif %}

View file

@ -55,7 +55,7 @@
{{ config.ad.top }}
{% include 'post_form.html' %}
{% include('post_form.html', {form_action_type: 'post-reply'}) %}
{% if config.global_message %}<hr /><div class="blotter">{{ config.global_message }}</div>{% endif %}
<hr />