Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 27 additions & 5 deletions config/grids.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
sylius_grid:
grids:
# Grid of commands (that will be scheduled)
synolia_admin_commands:
driver:
options:
Expand Down Expand Up @@ -58,11 +59,22 @@ sylius_grid:
main:
create:
type: create
history:
type: link
label: synolia.menu.admin.main.configuration.scheduler_command_history
options:
class: 'btn-ghost-azure'
icon: 'tabler:clock'
link:
route: 'synolia_admin_scheduled_command_index'
parameters: {}
item:
execute:
type: schedule_command_execute_immediate
type: link
label: synolia.ui.scheduled_command.execute_immediate
options:
icon: 'tabler:refresh'
class: 'btn-primary'
link:
route: execute_immediate_schedule
parameters:
Expand All @@ -74,6 +86,7 @@ sylius_grid:
bulk:
delete:
type: delete
# Grid of scheduled commands (historical)
synolia_admin_scheduled_commands:
driver:
options:
Expand All @@ -90,12 +103,13 @@ sylius_grid:
options:
template: '@SynoliaSyliusSchedulerCommandPlugin/Grid/Column/scheduled_command_state.html.twig'
executedAt:
type: scheduled_command_executed_at
type: twig
sortable: createdAt
label: synolia.ui.scheduled_command.last_execution
options:
date_format: !php/const \IntlDateFormatter::SHORT
time_format: !php/const \IntlDateFormatter::SHORT
template: '@SyliusAdmin/shared/grid/field/date.html.twig'
vars:
th_class: 'w-1 text-center'
commandExecutionTime:
type: scheduled_command_execution_time
label: synolia.ui.scheduled_command.command_execution_time
Expand Down Expand Up @@ -129,6 +143,15 @@ sylius_grid:
create:
type: create
label: synolia.ui.launch_a_command
list:
type: link
label: synolia.menu.admin.main.configuration.scheduler_command
options:
class: 'btn-ghost-azure'
icon: 'tabler:list'
link:
route: 'synolia_admin_command_index'
parameters: {}
item:
delete:
type: delete
Expand All @@ -137,5 +160,4 @@ sylius_grid:
type: delete
templates:
action:
schedule_command_execute_immediate: "@SynoliaSyliusSchedulerCommandPlugin/Grid/Action/execute_immediate.html.twig"
link: "@SynoliaSyliusSchedulerCommandPlugin/Grid/Action/link.html.twig"
57 changes: 0 additions & 57 deletions src/Grid/FieldType/DatetimeFieldType.php

This file was deleted.

42 changes: 0 additions & 42 deletions src/Listener/Grid/GoToCommandsButtonGridListener.php

This file was deleted.

42 changes: 0 additions & 42 deletions src/Listener/Grid/GoToHistoryButtonGridListener.php

This file was deleted.

2 changes: 1 addition & 1 deletion templates/Controller/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<input type="search" class="form-control" id="grep" placeholder="Search" aria-label="Search">
</div>

<pre id="results" class="text-bg-light text-center">
<pre id="results" class="text-bg-light">
<span class="loader m-auto"></span>
</pre>

Expand Down
5 changes: 0 additions & 5 deletions templates/Grid/Action/execute_immediate.html.twig

This file was deleted.