Skip to content

Commit

Permalink
[wip] Add orders/show/shipment component
Browse files Browse the repository at this point in the history
  • Loading branch information
rainerdema committed Jan 11, 2024
1 parent 093ca3b commit 44f885b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<section class="border-gray-100 border-t w-full first-of-type:border-t-0 p-6">
<h2>
<span class="text-xl">
#<%= @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) %>
</span>
</h2>
</section>
Expand All @@ -16,10 +17,20 @@
<table class="table-auto w-full">
<thead>
<tr>
<th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none"><%= t(".product") %></th>
<th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none w-16"><%= t(".quantity") %></th>
<th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none w-16 whitespace-nowrap"><%= t(".total") %></th>
<th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none w-16"><span class="sr-only"><%= t(".actions") %></span></th>
<th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none">
<%= t(".product") %>
</th>
<th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none w-16">
<%= t(".quantity") %>
</th>
<th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none w-16 whitespace-nowrap">
<%= t(".total") %>
</th>
<th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none w-16">
<span class="sr-only">
<%= t(".actions") %>
</span>
</th>
</tr>
</thead>
<tbody>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
en:
title: "#%{index}: %{number} from %{location}"
product: Product
quantity: Quantity
total: Total Price
Expand Down

0 comments on commit 44f885b

Please sign in to comment.