{# # Form Layout (Bootstrap 5 Override) # # Layout for registration and editing forms. # Uses a centered card layout with consistent Bootstrap 5 styling. # # @package WcBootstrap # @since 0.1.0 #} {% extends "wc-base.html.twig" %} {% block content %}
{% block form_header %}

{{ page_title|esc_html }}

{% block form_description %} {% if form_description is defined %}

{{ form_description|wp_kses_post }}

{% endif %} {% endblock %}
{% endblock %} {% block form_content %}
{{ wp_nonce_field(nonce_action|default('form_nonce'), nonce_name|default('_wpnonce')) }} {% if form_type is defined %} {% endif %} {% if post_id is defined %} {% endif %} {% block form_errors %} {% if errors is defined and errors|length > 0 %} {% endif %} {% endblock %} {% block form_fields %}{% endblock %} {% block form_actions %}
{% if cancel_url is defined %} {{ __('Cancel') }} {% endif %}
{% endblock %}
{% block form_footer %}{% endblock %}
{% endblock %} {% block form_sidebar %}{% endblock %}
{% endblock %} {% block scripts %} {{ parent() }} {% endblock %}