Skip to content

Commit

Permalink
Added good looking states
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jan 9, 2025
1 parent 9c87f32 commit 3a52fae
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,15 @@ public function prepend(ContainerBuilder $container): void
'limits' => [100, 200, 500],
'fields' => [
'state' => [
'type' => 'string',
'type' => 'twig',
'label' => 'sylius.ui.state',
'sortable' => null,
'options' => [
'template' => '@SyliusUi/Grid/Field/state.html.twig',
'vars' => [
'labels' => '@SetonoSyliusCatalogPromotionPlugin/Admin/catalog_promotion_update/label/state',
],
],
],
'triggeredBy' => [
'type' => 'string',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<span class="ui green label">
<i class="check icon"></i>
{{ value|trans }}
</span>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<span class="ui red label">
<i class="ban icon"></i>
{{ value|trans }}
</span>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<span class="ui label">
<i class="clock outline icon"></i>
{{ value|trans }}
</span>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<span class="ui yellow label">
<i class="hourglass half icon"></i>
{{ value|trans }}
</span>

0 comments on commit 3a52fae

Please sign in to comment.