{% set variant_class = 'fcu-btn--' + c.variant if c.variant else 'fcu-btn--primary' %} {% if c.method == "post" %} {# A state-changing action: a small form with the CSRF token. With confirm, up-confirm asks in a dialog (and core.js adds the confirmation field); with JavaScript off the route's @requires_confirmation asks instead. #} {# nosemgrep: django-no-csrf-token — Flask app; CSRF is handled by {{ csrf_field() }} below, not Django's {% csrf_token %}. #}
{% elif c.as_link %} {{ c.label }} {% else %} {% endif %}