{% set nonce_action = form.getNonceAction() ?? 'form' %}
{% set nonce_name = form.getNonceName() ?? 'form-nonce' %}
{% set nonce_value = form.getNonce() %}
<input type="hidden" name="{{ nonce_name }}" value="{{ nonce_value }}" class="form-nonce-field" data-nonce-action="{{ nonce_action }}" />
