Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #33 from bartoszpietrzak1994/reorder-button-label-…
Browse files Browse the repository at this point in the history
…placed-in-messages-file

Reorder button label placed in messages.yml file
  • Loading branch information
Zales0123 authored Jul 11, 2018
2 parents 4f69ba7 + e395621 commit 2ad7520
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sylius_grid:
item:
reorder:
type: reorder
label: Reorder
label: sylius_customer_reorder_plugin.ui.reorder
options:
link:
route: sylius_reorder_plugin_reorder
Expand Down
3 changes: 3 additions & 0 deletions src/Resources/translations/messages.en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sylius_customer_reorder_plugin:
ui:
reorder: Reorder
2 changes: 1 addition & 1 deletion src/Resources/views/reorder.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<form action="{{ path }}" method="POST">
<button class="button ui labeled icon green" id="reorder">
<i class="icon {{ action.options.icon|default('credit card alternative') }}" ></i>
{{ action.label }}
{{ action.label|trans }}
</button>
</form>

0 comments on commit 2ad7520

Please sign in to comment.