File tree Expand file tree Collapse file tree
src/Sylius/Bundle/AdminBundle
templates/order/show/content/sections Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import './app';
1313
1414import './scripts/bulk-delete' ;
1515import './scripts/check-all' ;
16+ import './scripts/fullscreen' ;
1617import './scripts/menu-search' ;
1718import './scripts/spotlight' ;
1819import './scripts/statistics_chart' ;
Original file line number Diff line number Diff line change 1+ /*
2+ * This file is part of the Sylius package.
3+ *
4+ * (c) Sylius Sp. z o.o.
5+ *
6+ * For the full copyright and license information, please view the LICENSE
7+ * file that was distributed with this source code.
8+ */
9+
10+ document . querySelectorAll ( '[data-fullscreen-btn]' ) . forEach ( btn => {
11+ btn . addEventListener ( 'click' , ( ) => {
12+ const containerId = btn . getAttribute ( 'data-fullscreen-btn' ) ;
13+ const container = document . querySelector ( `[data-fullscreen-container="${ containerId } "]` ) ;
14+
15+ if ( ! document . fullscreenElement ) {
16+ if ( container . requestFullscreen ) {
17+ container . requestFullscreen ( ) ;
18+ }
19+ } else {
20+ if ( document . exitFullscreen ) {
21+ document . exitFullscreen ( ) ;
22+ }
23+ }
24+ } ) ;
25+ } ) ;
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ sylius:
7474 create_new :
7575 customer_group : ' Create a new customer group'
7676 delete_avatar : ' Delete avatar'
77+ full_screen : ' Full screen'
7778 global : ' Global'
7879 ip_address : ' IP address'
7980 language : ' Language'
Original file line number Diff line number Diff line change 1- <div class =" card mb-3" >
1+ <div class =" card mb-3" data-fullscreen-container = " orders " >
22 <div class =" card-header" >
3- <div class =" card-title" >{{ ' sylius.ui.items' | trans }}</div >
3+ <div class =" card-title" >
4+ {{ ' sylius.ui.items' | trans }}
5+ </div >
6+ <div class =" card-actions btn-actions" >
7+ <div class =" btn-action cursor-pointer" data-fullscreen-btn =" orders" data-bs-toggle =" tooltip" data-bs-title =" {{ ' sylius.ui.full_screen' | trans }}" >
8+ {{ ux_icon(' tabler:maximize' ) }}
9+ </div >
10+ </div >
411 </div >
512 <div class =" table-responsive" >
613 <table class =" table table-hover table-vcenter card-table" {{ sylius_test_html_attribute(' table-items' ) }}>
7- {% hook ' items' %}
14+ {% hook ' items' %}
815 </table >
916 </div >
1017</div >
You can’t perform that action at this time.
0 commit comments