forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
84 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Sylius/Bundle/AdminBundle/templates/product_attribute/form/general.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Sylius/Bundle/AdminBundle/templates/product_option/form/sections/values/value.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 34 additions & 32 deletions
66
...le/AdminBundle/templates/product_option/form/sections/values/value/translations.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
{% for translation_form_key, translation_form in hookable_metadata.context.value_form.translations %} | ||
<div class="row mb-2" {{ sylius_test_html_attribute('option-value-locale', translation_form_key) }}> | ||
<div class="col-12"> | ||
{% if translation_form.vars.name is not null %} | ||
<div class="d-flex"> | ||
<div class="me-3 mt-1">{{ form_label(translation_form, translation_form.vars.name|sylius_locale_name) }}</div> | ||
</div> | ||
{% else %} | ||
<div class="d-flex"> | ||
<div class="me-3 mt-1"> | ||
<span class="col-form-label">{{ 'sylius.ui.global'|trans }}</span> | ||
<div class="row mb-3"> | ||
{% for translation_form_key, translation_form in hookable_metadata.context.value_form.translations %} | ||
<div class="col-3" {{ sylius_test_html_attribute('option-value-locale', translation_form_key) }}> | ||
<div> | ||
{% if translation_form.vars.name is not null %} | ||
<div class="d-flex"> | ||
<div class="me-3 mt-1">{{ form_label(translation_form, translation_form.vars.name|sylius_locale_name) }}</div> | ||
</div> | ||
{% else %} | ||
<div class="d-flex"> | ||
<div class="me-3 mt-1"> | ||
<span class="col-form-label">{{ 'sylius.ui.global'|trans }}</span> | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> | ||
<div> | ||
<div class="input-group"> | ||
{{ form_widget(translation_form.value) }} | ||
<button | ||
type="button" | ||
class="btn btn-icon" | ||
data-bs-toggle="tooltip" | ||
data-bs-title="{{ 'sylius.ui.apply_to_all'|trans }}" | ||
data-action="live#action:prevent" | ||
data-live-action-param="applyToAll" | ||
data-live-value-key-param="{{ hookable_metadata.context.value_form_key }}" | ||
data-live-translation-key-param="{{ translation_form_key }}" | ||
{{ sylius_test_html_attribute('apply-to-all') }} | ||
> | ||
{{ ux_icon('tabler:copy-plus') }} | ||
</button> | ||
{{ form_errors(translation_form.value) }} | ||
</div> | ||
{% endif %} | ||
</div> | ||
<div class="col-12"> | ||
<div class="input-group"> | ||
{{ form_widget(translation_form.value) }} | ||
<button | ||
type="button" | ||
class="btn btn-icon" | ||
data-bs-toggle="tooltip" | ||
data-bs-title="{{ 'sylius.ui.apply_to_all'|trans }}" | ||
data-action="live#action:prevent" | ||
data-live-action-param="applyToAll" | ||
data-live-value-key-param="{{ hookable_metadata.context.value_form_key }}" | ||
data-live-translation-key-param="{{ translation_form_key }}" | ||
{{ sylius_test_html_attribute('apply-to-all') }} | ||
> | ||
{{ ux_icon('tabler:copy-plus') }} | ||
</button> | ||
{{ form_errors(translation_form.value) }} | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
{% endfor %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters