File tree 6 files changed +38
-36
lines changed
6 files changed +38
-36
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ install-sylius:
72
72
${CONSOLE} sylius:fixtures:load default -n
73
73
${YARN} install
74
74
${YARN} build
75
+ ${CONSOLE} assets:install -n
75
76
${CONSOLE} cache:clear
76
77
77
78
phpunit-configure :
Original file line number Diff line number Diff line change 68
68
cp -R vendor/synolia/sylius-scheduler-command-plugin/install/Application/config/packages/* config/packages/
69
69
cp -R vendor/synolia/sylius-scheduler-command-plugin/install/Application/config/routes/* config/routes/
70
70
71
+ 6 . Installing assets (JS and CSS) fot the plugin
72
+
73
+ bin/console assets:install
74
+
71
75
## Usage
72
76
73
77
* Log into admin panel
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ function fireLog(e) {
2
2
e . preventDefault ( ) ;
3
3
var url = $ ( e . currentTarget ) . data ( 'href' ) ;
4
4
$ . get ( url , function ( data ) {
5
- $ ( '#log-modal .description ' ) . html ( $ ( data ) . find ( '#content' ) ) ;
5
+ $ ( '#log-content ' ) . html ( $ ( data ) ) ;
6
6
} ) . done ( function ( ) {
7
7
$ ( '#log-modal' ) . modal ( 'show' ) ;
8
8
} )
Original file line number Diff line number Diff line change 8
8
9
9
# results {
10
10
border : solid 1px ;
11
- padding : 5 px ;
11
+ padding : 10 px ;
12
12
overflow-y : scroll;
13
- height : calc (100% - 150 px );
13
+ height : calc (100% - 80 px );
14
14
}
15
15
16
16
# log-modal {
17
- width : calc (100% - 100px );
18
- height : calc (100% - 100px );
19
- }
20
-
21
- # log-modal .description ,
22
- # log-modal > .content ,
23
- # log-modal # content {
24
- height : 100% ;
17
+ width : calc (100% - 120px );
18
+ height : calc (100% - 120px );
19
+ overflow-y : hidden;
25
20
}
26
21
27
22
# results .loader : before {
31
26
# results .loader : after {
32
27
border-color : # 767676 transparent transparent;
33
28
}
29
+
30
+ # log-content {
31
+ padding : 10px ;
32
+ height : calc (100% - 20px );
33
+ }
34
+
35
+ # log-results {
36
+ height : calc (100% - 20px );
37
+ }
Original file line number Diff line number Diff line change 4
4
<i class =" close icon" ></i >
5
5
</a >
6
6
</div >
7
- <div class =" content" >
8
- <div class =" description" ></div >
7
+ <div id =" log-content" >
9
8
</div >
10
9
</div >
Original file line number Diff line number Diff line change 1
- {% extends ' @SyliusAdmin/layout.html.twig' %}
2
-
3
- {% import ' @SyliusUi/Macro/headers.html.twig' as headers %}
4
-
5
- {% block title %}{{ ' synolia.ui.live_view_of_scheduled_command' | trans({' %scheduledCommandName%' : scheduledCommand .name |e }) }} {{ parent () }}{% endblock %}
6
-
7
- {% block content %}
8
- {{ headers.default (' synolia.ui.live_view_of_scheduled_command' | trans({' %scheduledCommandName%' : scheduledCommand .name |e }), ' cogs' ) }}
9
-
10
- <div class =" ui input" >
11
- <input id =" grep" type =" text" placeholder =" Search..." >
12
- </div >
1
+ <div class =" ui icon input" >
2
+ <input id =" grep" type =" text" placeholder =" Search..." >
3
+ <i class =" search icon" ></i >
4
+ </div >
13
5
6
+ <div id =" log-results" >
14
7
<pre id =" results" >
15
8
<div class =" ui active centered inline loader" ></div >
16
9
</pre >
10
+ </div >
11
+
12
+ {{ sylius_template_event(' synolia.admin.command.logs.stylesheets' ) }}
17
13
18
- {{ sylius_template_event(' synolia.admin.command.logs.stylesheets' ) }}
14
+ <script type =" text/javascript" >
15
+ {% autoescape ' js' %}
16
+ /* <![CDATA[ */
17
+ var sy_updateTime = {{ updateTime }};
18
+ var sy_route = " {{ route }}" ;
19
+ /* ]]> */
20
+ {% endautoescape %}
21
+ </script >
19
22
20
- <script type =" text/javascript" >
21
- {% autoescape ' js' %}
22
- /* <![CDATA[ */
23
- var sy_updateTime = {{ updateTime }};
24
- var sy_route = " {{ route }}" ;
25
- /* ]]> */
26
- {% endautoescape %}
27
- </script >
23
+ {{ sylius_template_event(' synolia.admin.command.logs.javascripts' ) }}
28
24
29
- {{ sylius_template_event(' synolia.admin.command.logs.javascripts' ) }}
30
- {% endblock %}
You can’t perform that action at this time.
0 commit comments