-
Notifications
You must be signed in to change notification settings - Fork 56
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
118 changed files
with
1,192 additions
and
1,189 deletions.
There are no files selected for viewing
30 changes: 15 additions & 15 deletions
30
templates/bundles/SyliusShopBundle/Account/AddressBook/_defaultAddress.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,21 +1,21 @@ | ||
<div class="card border border-light h-100"> | ||
<div class="card-body"> | ||
{% include '@SyliusShop/Common/_address.html.twig' with {'address': address} %} | ||
</div> | ||
<div class="card-body"> | ||
{% include '@SyliusShop/Common/_address.html.twig' with {'address': address} %} | ||
</div> | ||
|
||
<div class="card-footer d-flex justify-content-between align-items-center" id="sylius-default-address" {{ sylius_test_html_attribute('default-address') }}> | ||
<span class="badge bg-primary-100 text-primary-700">{{ 'sylius.ui.your_default_address'|trans }}</span> | ||
|
||
<div class="d-flex gap-1"> | ||
<a href="{{ path('sylius_shop_account_address_book_update', {'id': address.id}) }}" class="btn btn-link text-secondary fw-bold" {{ sylius_test_html_attribute('edit-button') }}>{{ 'sylius.ui.edit'|trans }}</a> | ||
|
||
<form action="{{ path('sylius_shop_account_address_book_delete', {'id': address.id}) }}" method="post" onsubmit="return confirm('{{ " sylius.ui.are_your_sure_you_want_to_perform_this_action"|trans }}');"> | ||
<input type="hidden" name="_method" value="DELETE"> | ||
<button class="btn btn-link text-danger fw-bold" type="submit"> | ||
{{ 'sylius.ui.delete'|trans }} | ||
</button> | ||
<input type="hidden" name="_csrf_token" value="{{ csrf_token(address.id) }}"/> | ||
</form> | ||
</div> | ||
</div> | ||
<div class="d-flex gap-1"> | ||
<a href="{{ path('sylius_shop_account_address_book_update', {'id': address.id}) }}" class="btn btn-link text-secondary fw-bold" {{ sylius_test_html_attribute('edit-button') }}>{{ 'sylius.ui.edit'|trans }}</a> | ||
|
||
<form action="{{ path('sylius_shop_account_address_book_delete', {'id': address.id}) }}" method="post" onsubmit="return confirm('{{ " sylius.ui.are_your_sure_you_want_to_perform_this_action"|trans }}');"> | ||
<input type="hidden" name="_method" value="DELETE"> | ||
<button class="btn btn-link text-danger fw-bold" type="submit"> | ||
{{ 'sylius.ui.delete'|trans }} | ||
</button> | ||
<input type="hidden" name="_csrf_token" value="{{ csrf_token(address.id) }}"/> | ||
</form> | ||
</div> | ||
</div> | ||
</div> |
8 changes: 4 additions & 4 deletions
8
templates/bundles/SyliusShopBundle/Account/AddressBook/_defaultAddressForm.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,9 +1,9 @@ | ||
{% set id = app.request.attributes.get('id') %} | ||
|
||
{{ form_start(form, {'action': path('sylius_shop_account_address_book_set_as_default', {'id': id}), 'method': 'PATCH'}) }} | ||
<input hidden name="{{ form.defaultAddress.vars['full_name'] }}" value="{{ id }}" /> | ||
<button type="submit" class="btn btn-link text-secondary fw-bold" {{ sylius_test_html_attribute('set-as-default-button') }}> | ||
{{ 'sylius.ui.set_as_default'|trans }} | ||
</button> | ||
<input hidden name="{{ form.defaultAddress.vars['full_name'] }}" value="{{ id }}"/> | ||
<button type="submit" class="btn btn-link text-secondary fw-bold" {{ sylius_test_html_attribute('set-as-default-button') }}> | ||
{{ 'sylius.ui.set_as_default'|trans }} | ||
</button> | ||
{{ form_row(form._token) }} | ||
{{ form_end(form, {'render_rest': false}) }} |
32 changes: 16 additions & 16 deletions
32
templates/bundles/SyliusShopBundle/Account/AddressBook/_item.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,20 +1,20 @@ | ||
<div class="card border border-light h-100"> | ||
<div class="card-body" {{ sylius_test_html_attribute('address', "%s %s"|format(address.firstName, address.lastName)) }}> | ||
{% include '@SyliusShop/Common/_address.html.twig' with {'address': address} %} | ||
</div> | ||
<div class="card-body" {{ sylius_test_html_attribute('address', "%s %s"|format(address.firstName, address.lastName)) }}> | ||
{% include '@SyliusShop/Common/_address.html.twig' with {'address': address} %} | ||
</div> | ||
|
||
<div class="card-footer d-flex justify-content-between"> | ||
{{ render(path('sylius_shop_account_address_book_set_as_default', {'id': address.id})) }} | ||
<div class="d-flex gap-1"> | ||
<a href="{{ path('sylius_shop_account_address_book_update', {'id': address.id}) }}" class="btn btn-link text-secondary fw-bold" {{ sylius_test_html_attribute('edit-button') }}>{{ 'sylius.ui.edit'|trans }}</a> | ||
<div class="card-footer d-flex justify-content-between"> | ||
{{ render(path('sylius_shop_account_address_book_set_as_default', {'id': address.id})) }} | ||
<div class="d-flex gap-1"> | ||
<a href="{{ path('sylius_shop_account_address_book_update', {'id': address.id}) }}" class="btn btn-link text-secondary fw-bold" {{ sylius_test_html_attribute('edit-button') }}>{{ 'sylius.ui.edit'|trans }}</a> | ||
|
||
<form action="{{ path('sylius_shop_account_address_book_delete', {'id': address.id}) }}" method="post" onsubmit="return confirm('{{ " sylius.ui.are_your_sure_you_want_to_perform_this_action"|trans }}');"> | ||
<input type="hidden" name="_method" value="DELETE"> | ||
<button class="btn btn-link text-danger fw-bold" type="submit"> | ||
{{ 'sylius.ui.delete'|trans }} | ||
</button> | ||
<input type="hidden" name="_csrf_token" value="{{ csrf_token(address.id) }}"/> | ||
</form> | ||
</div> | ||
</div> | ||
<form action="{{ path('sylius_shop_account_address_book_delete', {'id': address.id}) }}" method="post" onsubmit="return confirm('{{ " sylius.ui.are_your_sure_you_want_to_perform_this_action"|trans }}');"> | ||
<input type="hidden" name="_method" value="DELETE"> | ||
<button class="btn btn-link text-danger fw-bold" type="submit"> | ||
{{ 'sylius.ui.delete'|trans }} | ||
</button> | ||
<input type="hidden" name="_csrf_token" value="{{ csrf_token(address.id) }}"/> | ||
</form> | ||
</div> | ||
</div> | ||
</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
4 changes: 2 additions & 2 deletions
4
templates/bundles/SyliusShopBundle/Account/Order/Index/_breadcrumb.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,6 +1,6 @@ | ||
{% import '@SyliusShop/Common/Macro/breadcrumbs.html.twig' as breadcrumbs %} | ||
|
||
{% block breadcrumb breadcrumbs.standard([ | ||
{ 'link': path('sylius_shop_account_dashboard'), 'label': 'sylius.ui.my_account'|trans }, | ||
{ 'label': 'sylius.ui.order_history'|trans } | ||
{'link': path('sylius_shop_account_dashboard'), 'label': 'sylius.ui.my_account'|trans}, | ||
{'label': 'sylius.ui.order_history'|trans} | ||
]) %} |
8 changes: 4 additions & 4 deletions
8
templates/bundles/SyliusShopBundle/Account/Order/Show/_breadcrumb.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,9 +1,9 @@ | ||
{% import '@SyliusShop/Common/Macro/breadcrumbs.html.twig' as breadcrumbs %} | ||
|
||
{% set orderLabel = "sylius.ui.order"|trans ~ ' <span id="number" ' ~ sylius_test_html_attribute("order-number") ~'>#' ~ order.number ~ '</span>' %} | ||
{% set order_label = "sylius.ui.order"|trans ~ ' <span id="number" ' ~ sylius_test_html_attribute("order-number") ~ '>#' ~ order.number ~ '</span>' %} | ||
|
||
{% block breadcrumb breadcrumbs.standard([ | ||
{ 'link': path('sylius_shop_account_dashboard'), 'label': 'sylius.ui.my_account'|trans }, | ||
{ 'link': path('sylius_shop_account_order_index'), 'label': 'sylius.ui.order_history'|trans }, | ||
{ 'label': orderLabel } | ||
{'link': path('sylius_shop_account_dashboard'), 'label': 'sylius.ui.my_account'|trans}, | ||
{'link': path('sylius_shop_account_order_index'), 'label': 'sylius.ui.order_history'|trans}, | ||
{'label': order_label} | ||
]) %} |
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
134 changes: 67 additions & 67 deletions
134
templates/bundles/SyliusShopBundle/Account/dashboard.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,92 +1,92 @@ | ||
{% extends '@SyliusShop/Account/layout.html.twig' %} | ||
|
||
{% block title %} | ||
{{ 'sylius.ui.my_account'|trans }} | ||
| | ||
{{ parent() }} | ||
{{ 'sylius.ui.my_account'|trans }} | ||
| | ||
{{ parent() }} | ||
{% endblock %} | ||
|
||
{% import '@SyliusShop/Common/Macro/headers.html.twig' as headers %} | ||
{% import "@SyliusShop/Common/Macro/icons.html.twig" as icons %} | ||
{% import '@SyliusShop/Common/Macro/breadcrumbs.html.twig' as breadcrumbs %} | ||
|
||
{% block breadcrumb breadcrumbs.standard([ | ||
{ link: path('sylius_shop_account_dashboard'), label: 'sylius.ui.my_account'|trans }, | ||
{ label: 'sylius.ui.my_account'|trans } | ||
{link: path('sylius_shop_account_dashboard'), label: 'sylius.ui.my_account'|trans}, | ||
{label: 'sylius.ui.my_account'|trans} | ||
]) %} | ||
|
||
{% block subcontent %} | ||
{{ headers.default('sylius.ui.my_account'|trans, '', 'sylius.ui.manage_your_personal_information_and_preferences'|trans) }} | ||
{{ headers.default('sylius.ui.my_account'|trans, '', 'sylius.ui.manage_your_personal_information_and_preferences'|trans) }} | ||
|
||
{{ sylius_template_event('sylius.shop.account.dashboard.after_content_header', {'customer': customer}) }} | ||
{{ sylius_template_event('sylius.shop.account.dashboard.after_content_header', {'customer': customer}) }} | ||
|
||
<div class="card mb-4 border border-light" {{ sylius_test_html_attribute('customer-information') }}> | ||
<div class="card mb-4 border border-light" {{ sylius_test_html_attribute('customer-information') }}> | ||
|
||
<div class="card-body"> | ||
<strong class="d-block h4 pb-3 border-bottom border-light mb-3">{{ customer.fullName }}</strong> | ||
<div class="card-body"> | ||
<strong class="d-block h4 pb-3 border-bottom border-light mb-3">{{ customer.fullName }}</strong> | ||
|
||
<dl class="d-flex flex-wrap gap-2 gap-lg-4"> | ||
<div class="d-flex flex-column" style="flex: 1"> | ||
<dt class="fw-medium mb-2">{{ 'sylius.ui.email'|trans }}</dt> | ||
<dd class="mb-0"> | ||
{{ customer.email }} | ||
{% if not customer.user.verified %} | ||
<div class="text-danger fw-bold"> | ||
<i class="fa-solid fa-times"></i> | ||
{{ 'sylius.ui.not_verified'|trans }} | ||
</div> | ||
{% endif %} | ||
</dd> | ||
</div> | ||
<div class="d-flex flex-column" style="flex: 1"> | ||
<dt class="fw-medium mb-2">{{ 'sylius.ui.phone_number'|trans }}</dt> | ||
<dd class="mb-0">{{ customer.phoneNumber }}</dd> | ||
</div> | ||
<div class="d-flex flex-column" style="flex: 1"> | ||
<dt class="fw-medium mb-2">{{ 'sylius.ui.password'|trans }}</dt> | ||
<dd class="mb-0">*********</dd> | ||
</div> | ||
</dl> | ||
</div> | ||
<dl class="d-flex flex-wrap gap-2 gap-lg-4"> | ||
<div class="d-flex flex-column" style="flex: 1"> | ||
<dt class="fw-medium mb-2">{{ 'sylius.ui.email'|trans }}</dt> | ||
<dd class="mb-0"> | ||
{{ customer.email }} | ||
{% if not customer.user.verified %} | ||
<div class="text-danger fw-bold"> | ||
<i class="fa-solid fa-times"></i> | ||
{{ 'sylius.ui.not_verified'|trans }} | ||
</div> | ||
{% endif %} | ||
</dd> | ||
</div> | ||
<div class="d-flex flex-column" style="flex: 1"> | ||
<dt class="fw-medium mb-2">{{ 'sylius.ui.phone_number'|trans }}</dt> | ||
<dd class="mb-0">{{ customer.phoneNumber }}</dd> | ||
</div> | ||
<div class="d-flex flex-column" style="flex: 1"> | ||
<dt class="fw-medium mb-2">{{ 'sylius.ui.password'|trans }}</dt> | ||
<dd class="mb-0">*********</dd> | ||
</div> | ||
</dl> | ||
</div> | ||
|
||
<div class="card-footer d-flex flex-wrap"> | ||
{% if not customer.user.verified %} | ||
<form action="{{ path('sylius_shop_user_request_verification_token') }}" {{ sylius_test_html_attribute('verification-form') }} method="post"> | ||
<button type="submit" class="btn btn-outline-primary" {{ sylius_test_html_attribute('verification-button') }}> | ||
{{ icons.success('me-2') }} | ||
{{ 'sylius.ui.verify'|trans }} | ||
</button> | ||
</form> | ||
{% endif %} | ||
<a href="{{ path('sylius_shop_account_profile_update') }}" class="btn btn-link ms-2"> | ||
{{ icons.edit('me-2') }} | ||
{{ 'sylius.ui.edit'|trans }} | ||
</a> | ||
<a href="{{ path('sylius_shop_account_change_password') }}" class="btn btn-link ms-2"> | ||
{{ icons.lock('me-2') }} | ||
{{ 'sylius.ui.change_password'|trans }} | ||
</a> | ||
</div> | ||
<div class="card-footer d-flex flex-wrap"> | ||
{% if not customer.user.verified %} | ||
<form action="{{ path('sylius_shop_user_request_verification_token') }}" {{ sylius_test_html_attribute('verification-form') }} method="post"> | ||
<button type="submit" class="btn btn-outline-primary" {{ sylius_test_html_attribute('verification-button') }}> | ||
{{ icons.success('me-2') }} | ||
{{ 'sylius.ui.verify'|trans }} | ||
</button> | ||
</form> | ||
{% endif %} | ||
<a href="{{ path('sylius_shop_account_profile_update') }}" class="btn btn-link ms-2"> | ||
{{ icons.edit('me-2') }} | ||
{{ 'sylius.ui.edit'|trans }} | ||
</a> | ||
<a href="{{ path('sylius_shop_account_change_password') }}" class="btn btn-link ms-2"> | ||
{{ icons.lock('me-2') }} | ||
{{ 'sylius.ui.change_password'|trans }} | ||
</a> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
{% if customer.defaultAddress %} | ||
<div class="card mb-4 border border-light"> | ||
<div class="card-body"> | ||
<strong class="d-block h4 pb-3 border-bottom border-light mb-3">{{ 'sylius.ui.default_address'|trans }}</strong> | ||
{% include '@SyliusShop/Common/_address.html.twig' with {'address': customer.defaultAddress} %} | ||
</div> | ||
{% if customer.defaultAddress %} | ||
<div class="card mb-4 border border-light"> | ||
<div class="card-body"> | ||
<strong class="d-block h4 pb-3 border-bottom border-light mb-3">{{ 'sylius.ui.default_address'|trans }}</strong> | ||
{% include '@SyliusShop/Common/_address.html.twig' with {'address': customer.defaultAddress} %} | ||
</div> | ||
|
||
<div class="card-footer"> | ||
<a href="{{ path('sylius_shop_account_address_book_update', {'id': customer.defaultAddress.id}) }}" class="btn btn-link me-2"> | ||
{{ icons.edit('me-2') }} | ||
{{ 'sylius.ui.edit'|trans }} | ||
</a> | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div class="card-footer"> | ||
<a href="{{ path('sylius_shop_account_address_book_update', {'id': customer.defaultAddress.id}) }}" class="btn btn-link me-2"> | ||
{{ icons.edit('me-2') }} | ||
{{ 'sylius.ui.edit'|trans }} | ||
</a> | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
{{ sylius_template_event('sylius.shop.account.dashboard.after_information', {'customer': customer}) }} | ||
{{ sylius_template_event('sylius.shop.account.dashboard.after_information', {'customer': customer}) }} | ||
|
||
|
||
{% endblock %} |
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
Oops, something went wrong.