|
1 | 1 | <div class="<%= stimulus_id %>" data-controller="<%= stimulus_id %>">
|
2 | 2 | <div class="rounded p-2">
|
3 | 3 | <%= render component('ui/panel').new do |panel| %>
|
| 4 | + <% panel.with_menu t(".edit_shipment"), solidus_admin.order_shipments_path(@order, shipment_id: @shipment.id) %> |
| 5 | + |
4 | 6 | <% panel.with_section(wide: true, high: true) do %>
|
5 | 7 | <section class="border-gray-100 border-t w-full first-of-type:border-t-0 p-6">
|
6 | 8 | <h2>
|
7 | 9 | <span class="text-xl">
|
8 |
| - #<%= @index %>: <%= @shipment.number %> from <%= @shipment.stock_location.name %> <%= render component('ui/badge').new(name: @shipment.state.titleize) %> |
| 10 | + <%= t('.title', index: @index, number: @shipment.number, location: @shipment.stock_location.name) %> |
| 11 | + <%= render component('ui/badge').new(name: @shipment.state.titleize) %> |
9 | 12 | </span>
|
10 | 13 | </h2>
|
11 | 14 | </section>
|
|
16 | 19 | <table class="table-auto w-full">
|
17 | 20 | <thead>
|
18 | 21 | <tr>
|
19 |
| - <th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none"><%= t(".product") %></th> |
20 |
| - <th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none w-16"><%= t(".quantity") %></th> |
21 |
| - <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> |
22 |
| - <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> |
| 22 | + <th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none"> |
| 23 | + <%= t(".product") %> |
| 24 | + </th> |
| 25 | + <th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none w-16"> |
| 26 | + <%= t(".quantity") %> |
| 27 | + </th> |
| 28 | + <th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none w-16 whitespace-nowrap"> |
| 29 | + <%= t(".total") %> |
| 30 | + </th> |
| 31 | + <th class="text-left body-small-bold text-gray-800 bg-gray-15 px-6 py-3 leading-none w-16"> |
| 32 | + <span class="sr-only"> |
| 33 | + <%= t(".actions") %> |
| 34 | + </span> |
| 35 | + </th> |
23 | 36 | </tr>
|
24 | 37 | </thead>
|
25 | 38 | <tbody>
|
|
75 | 88 | </span>
|
76 | 89 | <%= @shipment.shipping_method.name %> - <%= @shipment.display_cost %>
|
77 | 90 | </label>
|
78 |
| - |
79 |
| - <%= render component("ui/icon").new(name: 'edit-line', class: 'w-5 h-5 cursor-pointer') %> |
80 | 91 | </li>
|
81 | 92 | <li class="flex justify-between py-1.5">
|
82 | 93 | <label class="flex flex-col w-full py-1.5">
|
|
85 | 96 | </span>
|
86 | 97 | <%= @shipment.tracking || t(".none") %>
|
87 | 98 | </label>
|
88 |
| - |
89 |
| - <%= render component("ui/icon").new(name: 'edit-line', class: 'w-5 h-5 cursor-pointer') %> |
90 | 99 | </li>
|
91 | 100 | </ul>
|
92 | 101 | </td>
|
|
0 commit comments