[Admin] Use specific block names in shipping method form theme

This commit is contained in:
Wojdylak 2025-12-16 09:36:24 +01:00
parent bcbd15e70e
commit e90e837dd3
No known key found for this signature in database
GPG key ID: 7509E560A6821ABE

View file

@ -1,10 +1,10 @@
{% extends '@SyliusAdmin/shared/form_theme.html.twig' %}
{%- block live_collection_widget -%}
{%- block _sylius_admin_shipping_method_rules_widget -%}
{{ block('form_widget') }}
{%- endblock live_collection_widget -%}
{%- endblock -%}
{%- block live_collection_entry_row -%}
{%- block _sylius_admin_shipping_method_rules_entry_row -%}
<div id="{{ id }}" {{ block('attributes') }} {{ sylius_test_html_attribute('entry-row') }}>
{{- form_errors(form) -}}
{{- form_row(form.type) -}}
@ -19,9 +19,9 @@
</div>
</div>
</div>
{%- endblock live_collection_entry_row -%}
{%- endblock -%}
{% block add_button_row %}
{% block _sylius_admin_shipping_method_rules_add_row %}
{% if types is not empty %}
<div class="dropdown">
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown">{{ label|trans }}</button>