forked from leftypol/leftypol
post_form.html: add data-action parameter to turnstile captcha
This commit is contained in:
parent
67de8df246
commit
f3c45073cb
4 changed files with 19 additions and 3 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue