Skip to content

Commit

Permalink
Adjusted order item template to show edit button if order is not canc…
Browse files Browse the repository at this point in the history
…elled
  • Loading branch information
JakobTolkemit committed Apr 23, 2019
1 parent d380bfe commit 903be6b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
{% include '@Brille24SyliusCustomerOptionsPlugin/Product/_customerOptions.html.twig' with {
'configuration': item.customerOptionConfiguration
} %}
{% if item.order.state != constant('Sylius\\Component\\Order\\Model\\Order::STATE_CANCELLED') %}
<a href="{{ path('edit_order_item_configuration', {'orderItem': item.id}) }}" class="button ui">
{{ 'brille24.ui.customer_options'|trans }}
</a>
{% endif %}
{% endif %}
</td>
<td class="right aligned unit-price">
Expand Down

0 comments on commit 903be6b

Please sign in to comment.