Skip to content

Commit

Permalink
Fix add labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Jun 24, 2024
1 parent 43fb299 commit c0691fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Form/Extension/OrderTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
'entry_options' => [
'currency' => $order->getCurrencyCode(),
],
'button_add_label' => 'setono_sylius_order_edit.ui.add_discount',
]);
});

Expand Down
1 change: 1 addition & 0 deletions src/Form/Type/OrderItemType.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
'entry_options' => [
'currency' => $order->getCurrencyCode(),
],
'button_add_label' => 'setono_sylius_order_edit.ui.add_discount',
]);
});

Expand Down
2 changes: 2 additions & 0 deletions src/Resources/translations/messages.en.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
setono_sylius_order_edit:
ui:
add_discount: Add discount
add_order_item: Add order item
discounts: Discounts
order_discounts: Order discounts
order_items: Order items
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<tr>
<td>
<button class="ui teal labeled icon button add-order-item" type="button">
<i class="icon plus"></i> {{ 'sylius.ui.add'|trans }}
<i class="icon plus"></i> {{ 'setono_sylius_order_edit.ui.add_order_item'|trans }}
</button>
</td>
</tr>
Expand Down

0 comments on commit c0691fb

Please sign in to comment.