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.
- Loading branch information
Showing
18 changed files
with
47 additions
and
37 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
src/Sylius/Bundle/AdminBundle/templates/catalog_promotion/grid/field/date.html.twig
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/Sylius/Bundle/AdminBundle/templates/country/grid/field/name.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,2 +1,2 @@ | ||
<span class="flag flag-sm flag-country-{{ data.code|lower }}"></span> | ||
{{ data }} | ||
<span class="ps-2 fw-medium">{{ data }}</span> |
2 changes: 1 addition & 1 deletion
2
src/Sylius/Bundle/AdminBundle/templates/locale/grid/field/name.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,2 +1,2 @@ | ||
<span class="flag flag-sm flag-country-{{ data.code|split('_')|last|lower }}"></span> | ||
{{ data }} | ||
<span class="ps-2 fw-medium">{{ data }}</span> |
2 changes: 1 addition & 1 deletion
2
src/Sylius/Bundle/AdminBundle/templates/order/grid/field/order_total.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,3 +1,3 @@ | ||
{% import "@SyliusAdmin/shared/helper/money.html.twig" as _money %} | ||
|
||
{{ _money.format(data.total, data.currencyCode) }} | ||
<span class="fw-medium">{{ _money.format(data.total, data.currencyCode) }}</span> |
2 changes: 1 addition & 1 deletion
2
src/Sylius/Bundle/AdminBundle/templates/product/grid/field/name.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
4 changes: 3 additions & 1 deletion
4
src/Sylius/Bundle/AdminBundle/templates/product/grid/field/product_image.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,3 +1,5 @@ | ||
{% import '@SyliusAdmin/shared/helper/product.html.twig' as _product %} | ||
|
||
{{ _product.image(data) }} | ||
<div class="py-1"> | ||
{{ _product.image(data) }} | ||
</div> |
4 changes: 2 additions & 2 deletions
4
src/Sylius/Bundle/AdminBundle/templates/shared/grid/field/boolean.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,7 +1,7 @@ | ||
{% from '@SyliusAdmin/shared/helper/icon.html.twig' import icon as _icon %} | ||
|
||
{% if true == data %} | ||
<span {{ sylius_test_html_attribute('status-enabled') }}>{{ _icon({ icon: 'check', class: 'icon text-green' }) }}</span> | ||
<div class="text-center" {{ sylius_test_html_attribute('status-enabled') }}>{{ _icon({ icon: 'check', class: 'icon text-green' }) }}</div> | ||
{% else %} | ||
<span {{ sylius_test_html_attribute('status-disabled') }}>{{ _icon({ icon: 'x', class: 'icon icon-sm text-secondary' }) }}</span> | ||
<div class="text-center" {{ sylius_test_html_attribute('status-disabled') }}>{{ _icon({ icon: 'x', class: 'icon icon-sm text-secondary' }) }}</div> | ||
{% endif %} |
11 changes: 4 additions & 7 deletions
11
src/Sylius/Bundle/AdminBundle/templates/shared/grid/field/channel.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,7 +1,4 @@ | ||
<div class="channel"> | ||
<span class="badge" style="background-color: {{ data.color|default('#000') }}"></span> | ||
|
||
<span class="text-nowrap"> | ||
{{ data.name|default(data.code) }} | ||
</span> | ||
</div> | ||
<span class="status status-blue status-lite"> | ||
<span class="status-dot" style="background-color: {{ data.color|default('#000') }}"></span> | ||
<span class="text-nowrap fs-5">{{ data.name|default(data.code) }}</span> | ||
</span> |
10 changes: 4 additions & 6 deletions
10
src/Sylius/Bundle/AdminBundle/templates/shared/grid/field/channels.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,7 +1,5 @@ | ||
<div class="channel"> | ||
<span class="text-nowrap"> | ||
{% for channel in data %} | ||
{% include('@SyliusAdmin/shared/grid/field/channel.html.twig') with { data: channel } %} | ||
{% endfor %} | ||
</span> | ||
<div> | ||
{% for channel in data %} | ||
<div>{% include('@SyliusAdmin/shared/grid/field/channel.html.twig') with { data: channel } %}</div> | ||
{% endfor %} | ||
</div> |
3 changes: 3 additions & 0 deletions
3
src/Sylius/Bundle/AdminBundle/templates/shared/grid/field/code.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% if data is not null %} | ||
<code>{{ data }}</code> | ||
{% endif %} |
2 changes: 1 addition & 1 deletion
2
src/Sylius/Bundle/AdminBundle/templates/shared/grid/field/customer.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,2 +1,2 @@ | ||
<strong>{{ data.firstName }} {{ data.lastName }}</strong> | ||
<p>{{ data.email }}</p> | ||
<div class="fs-5 text-secondary">{{ data.email }}</div> |
8 changes: 8 additions & 0 deletions
8
src/Sylius/Bundle/AdminBundle/templates/shared/grid/field/date.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="text-center fs-5"> | ||
{% if data is null %} | ||
<span class="text-secondary">-</span> | ||
{% else %} | ||
<div>{{ data|date('Y-m-d') }}</div> | ||
<div>{{ data|date('H:i') }}</div> | ||
{% endif %} | ||
</div> |
3 changes: 3 additions & 0 deletions
3
src/Sylius/Bundle/AdminBundle/templates/shared/grid/field/name.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% if data is not null %} | ||
<a href="#" class="fw-medium">{{ data }}</a> | ||
{% endif %} |
2 changes: 1 addition & 1 deletion
2
src/Sylius/Bundle/AdminBundle/templates/shared/grid/field/order_number.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 +1 @@ | ||
<a href="{{ path('sylius_admin_order_show', {'id' : data.id })|raw }}">#{{ data.number }}</a> | ||
<a class="fw-medium" href="{{ path('sylius_admin_order_show', {'id' : data.id })|raw }}">#{{ data.number }}</a> |
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
4 changes: 3 additions & 1 deletion
4
src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/nameAndDescription.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,4 +1,6 @@ | ||
<strong>{{ data.name }}</strong> | ||
{% if data.description is not empty %} | ||
<p>{{ data.description }}</p> | ||
<div class="fs-5 text-secondary text-wrap pt-1"> | ||
{{ data.description }} | ||
</div> | ||
{% endif %} |
2 changes: 1 addition & 1 deletion
2
src/Sylius/Bundle/UiBundle/Resources/views/Grid/Field/position.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 +1 @@ | ||
<div style="text-align: center;"><span class="ui circular label">{{ data }}</span></div> | ||
<span class="badge bg-blue-lt">{{ data }}</span> |