-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move menuitem from list to tabs #41
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
/etc/build/* | ||
!/etc/build/.gitignore | ||
/.idea | ||
|
||
/tests/Application/yarn.lock | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
speardevs_push_notifications_section: | ||
path: /account/push-notifications | ||
defaults: | ||
_controller: 'SpearDevs\SyliusPushNotificationsPlugin\Controller\Shop\PushNotificationAction' | ||
template: '@SpearDevsSyliusPushNotificationsPlugin/Shop/Account/push_notification.html.twig' | ||
|
||
speardevs_push_notifications_history_index: | ||
path: /account/push-notifications-history | ||
speardevs_push_notifications: | ||
path: /account/push-notifications-section | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
methods: [ GET ] | ||
defaults: | ||
_controller: speardevs_sylius_push_notifications_plugin.controller.push_notification_history::indexAction | ||
|
@@ -16,7 +10,7 @@ speardevs_push_notifications_history_index: | |
grid: speardevs_push_notification_history | ||
section: shop_account | ||
permission: true | ||
template: '@SpearDevsSyliusPushNotificationsPlugin/Shop/Account/push_notification_history.html.twig' | ||
template: '@SpearDevsSyliusPushNotificationsPlugin/Shop/Account/index.html.twig' | ||
repository: | ||
method: findByCustomer | ||
arguments: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% extends '@SyliusShop/Account/RefundationDocument/layout.html.twig' %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, we shouldn't have a project-specific stuff in the plugin's codebase. |
||
|
||
{% import '@SyliusUi/Macro/messages.html.twig' as messages %} | ||
{% import '@SyliusUi/Macro/pagination.html.twig' as pagination %} | ||
{% import '@SyliusShop/Common/Macro/headers.html.twig' as headers %} | ||
{% import "@SyliusShop/Common/Macro/icons.html.twig" as icons %} | ||
|
||
{% block turbo_frame_content %} | ||
|
||
{{ block('grid_navigation') }} | ||
|
||
<div class="tab-content mt-4"> | ||
<div class="tab-pane fade show active" id="active-tab-pane" role="tabpanel" aria-labelledby="active-tab" tabindex="0"> | ||
{{ include('@SpearDevsSyliusPushNotificationsPlugin/Shop/Account/push_notification.html.twig') }} | ||
</div> | ||
<div class="tab-pane fade" id="realized-tab-pane" role="tabpanel" aria-labelledby="realized-tab" tabindex="1"> | ||
{{ include('@SpearDevsSyliusPushNotificationsPlugin/Shop/Account/push_notification_history.html.twig') }} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block grid_navigation %} | ||
{% set verified = resources.parameters.get('criteria').verified|default(null) %} | ||
|
||
<ul class="nav nav-tabs refundations-documents-tabs" role="tablist"> | ||
<li class="nav-item" role="presentation"> | ||
<button class="nav-link active" id="active-tab" data-bs-toggle="tab" data-bs-target="#active-tab-pane" type="button" role="tab" aria-controls="active-tab-pane" aria-selected="true"> | ||
{{ 'speardevs_sylius_push_notifications_plugin.ui.my_account.push_notifications'|trans }} | ||
</button> | ||
</li> | ||
<li class="nav-item" role="presentation"> | ||
<button class="nav-link" id="realized-tab" data-bs-toggle="tab" data-bs-target="#realized-tab-pane" type="button" role="tab" aria-controls="realized-tab-pane" aria-selected="false"> | ||
{{ 'speardevs_sylius_push_notifications_plugin.ui.my_account.push_notification_history'|trans }} | ||
</button> | ||
</li> | ||
</ul> | ||
{% endblock %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be specified in your global gitignore, not in the project's.
Please remove it