forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General UI improvements #2 (Sylius#17576)
<img width="1378" alt="image" src="https://github.com/user-attachments/assets/46f3444e-6daf-42c8-b29d-511384e9b5fe" /> <img width="1387" alt="image" src="https://github.com/user-attachments/assets/983b9145-53b5-4b35-8c8c-276baabc96a0" /> <img width="1404" alt="image" src="https://github.com/user-attachments/assets/a608cf72-4c1d-4fe3-9ad7-4133207196de" /> <img width="1397" alt="image" src="https://github.com/user-attachments/assets/088195ad-63ac-4cf3-9d3f-93bbc45025d9" /> <img width="236" alt="image" src="https://github.com/user-attachments/assets/1c88b15b-0875-47a2-a358-05b71e03baee" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced visual styling for dropdown items in the sidebar navigation. - Improved layout for translation forms with a new three-column display. - **Bug Fixes** - Adjusted the active state styling for dropdown items in the menu. - **Style** - Modified margin and layout properties across various templates to improve visual spacing and organization. - Updated icon rendering in dropdown menus for consistent styling. - Adjusted styling for product taxon selection interface and card components. - **Documentation** - No changes made. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
11 changed files
with
54 additions
and
61 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