From 44f885b2c52c4cdf71f872750c475f9ce228677c Mon Sep 17 00:00:00 2001 From: Rainer Dema Date: Thu, 11 Jan 2024 17:48:50 +0100 Subject: [PATCH] [wip] Add `orders/show/shipment` component --- .../orders/show/shipment/component.html.erb | 21 ++++++++++++++----- .../orders/show/shipment/component.yml | 1 + 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/admin/app/components/solidus_admin/orders/show/shipment/component.html.erb b/admin/app/components/solidus_admin/orders/show/shipment/component.html.erb index 9e84e3e4800..8f4e43cf6c7 100644 --- a/admin/app/components/solidus_admin/orders/show/shipment/component.html.erb +++ b/admin/app/components/solidus_admin/orders/show/shipment/component.html.erb @@ -5,7 +5,8 @@

- #<%= @index %>: <%= @shipment.number %> from <%= @shipment.stock_location.name %> <%= render component('ui/badge').new(name: @shipment.state.titleize) %> + <%= t('.title', index: @index, number: @shipment.number, location: @shipment.stock_location.name) %> + <%= render component('ui/badge').new(name: @shipment.state.titleize) %>

@@ -16,10 +17,20 @@ - - - - + + + + diff --git a/admin/app/components/solidus_admin/orders/show/shipment/component.yml b/admin/app/components/solidus_admin/orders/show/shipment/component.yml index 4f41648a1c3..43ac50a44e0 100644 --- a/admin/app/components/solidus_admin/orders/show/shipment/component.yml +++ b/admin/app/components/solidus_admin/orders/show/shipment/component.yml @@ -1,4 +1,5 @@ en: + title: "#%{index}: %{number} from %{location}" product: Product quantity: Quantity total: Total Price
<%= t(".product") %><%= t(".quantity") %><%= t(".total") %><%= t(".actions") %> + <%= t(".product") %> + + <%= t(".quantity") %> + + <%= t(".total") %> + + + <%= t(".actions") %> + +