Skip to content

Commit

Permalink
Add show buttons to the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
kulczy authored and GSadee committed May 14, 2024
1 parent 73b4a5f commit 4cc8549
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% from '@SyliusAdmin/shared/helper/icon.html.twig' import icon %}

<div class="col-12 col-md-6">
<div class="card mb-3">
<div class="card-header">
Expand Down Expand Up @@ -27,7 +29,11 @@
</div>
</div>
</td>
<td class="text-end"><a href="{{ path('sylius_admin_customer_show', { id: customer.id }) }}">{{ 'sylius.ui.show'|trans }}</a></td>
<td class="text-end">
<a href="{{ path('sylius_admin_customer_show', { id: customer.id }) }}" class="btn btn-icon" data-bs-toggle="tooltip" data-bs-title="{{ 'sylius.ui.show'|trans }}">
{{ icon({ icon: action.icon|default('eye'), class: 'icon icon-tabler' }) }}
</a>
</td>
</tr>
{% endfor %}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% from '@SyliusAdmin/shared/helper/icon.html.twig' import icon %}

<div class="col-12 col-md-6">
<div class="card mb-3">
<div class="card-header">
Expand Down Expand Up @@ -31,7 +33,11 @@
</td>
<td class="text-center">{{ order.items|length }}</td>
<td class="text-center text-muted">{{ order.total|sylius_format_money(order.currencyCode, order.localeCode) }}</td>
<td class="text-end"><a href="{{ path('sylius_admin_order_show', { id: order.id }) }}">{{ 'sylius.ui.show'|trans }}</a></td>
<td class="text-end">
<a href="{{ path('sylius_admin_order_show', { id: order.id }) }}" class="btn btn-icon" data-bs-toggle="tooltip" data-bs-title="{{ 'sylius.ui.show'|trans }}">
{{ icon({ icon: action.icon|default('eye'), class: 'icon icon-tabler' }) }}
</a>
</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 4cc8549

Please sign in to comment.