19 lines
529 B
HTML
19 lines
529 B
HTML
{% macro field(f) %}
|
|
<div class="field">
|
|
{{ f.label }}
|
|
{{ f(class="input") }}
|
|
{% if f.errors %}
|
|
<ul class="errors">
|
|
{% for e in f.errors %}<li>{{ e }}</li>{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|
|
{% endmacro %}
|
|
|
|
{% macro turnstile_widget(enabled) %}
|
|
{% if enabled and TURNSTILE_SITE_KEY %}
|
|
<div class="cf-turnstile" data-sitekey="{{ TURNSTILE_SITE_KEY }}"></div>
|
|
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
|
|
{% endif %}
|
|
{% endmacro %}
|