mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
Start using Twig Hooks autoprefixing in the Taxon templates
This commit is contained in:
parent
5814a2f18f
commit
a550b8d4ef
6 changed files with 8 additions and 17 deletions
|
|
@ -1 +1 @@
|
|||
{{ form_row(hookable_data.form.code) }}
|
||||
{{ form_row(hookable_metadata.context.form.code) }}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{{ form_row(hookable_data.form.enabled, { label_attr: { class: 'checkbox-switch' } }) }}
|
||||
{{ form_row(hookable_metadata.context.form.enabled, { label_attr: { class: 'checkbox-switch' } }) }}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{{ form_row(hookable_data.form.parent, {
|
||||
{{ form_row(hookable_metadata.context.form.parent, {
|
||||
parent_label_class: 'checkbox-switch',
|
||||
search_url: path('sylius_admin_ajax_taxon_by_name_phrase'),
|
||||
init_load_url: path('sylius_admin_ajax_taxon_by_code')
|
||||
|
|
|
|||
|
|
@ -1,11 +1,5 @@
|
|||
{% set main_hook = hook_name(hookable_data.parent_main_hook, 'details') %}
|
||||
{% set fallback_hook = hook_name(hookable_data.parent_fallback_hook, 'details') %}
|
||||
|
||||
<div class="card mb-3">
|
||||
<div class="card-body">
|
||||
{% hook [main_hook, fallback_hook] with hookable_data|merge({
|
||||
parent_main_hook: main_hook,
|
||||
parent_fallback_hook: fallback_hook,
|
||||
}) %}
|
||||
{% hook 'details' %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -21,5 +21,5 @@
|
|||
</div>
|
||||
{% endverbatim %}
|
||||
{% endset %}
|
||||
{{ _translations.default(hookable_data.form.translations, body, {accordionId: 'taxon-translations'}) }}
|
||||
{{ _translations.default(hookable_metadata.context.form.translations, body, {accordionId: 'taxon-translations'}) }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
{% set main_hook = hook_name(hookable_data.parent_main_hook, 'sections') %}
|
||||
{% set fallback_hook = hook_name(hookable_data.parent_fallback_hook, 'sections') %}
|
||||
{% set main_hook = hook_name(hookable_metadata.context.parent_main_hook, 'sections') %}
|
||||
{% set fallback_hook = hook_name(hookable_metadata.context.parent_fallback_hook, 'sections') %}
|
||||
|
||||
<div class="col-12 col-md-8">
|
||||
{% hook [main_hook, fallback_hook] with hookable_data|merge({
|
||||
parent_main_hook: main_hook,
|
||||
parent_fallback_hook: fallback_hook,
|
||||
}) %}
|
||||
{% hook 'sections' %}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue