Sha256: 995dc68b808325e5c11fc5aa398e61e5a77f8def1ea54e4addbd8a108709717a

Contents?: true

Size: 868 Bytes

Versions: 3

Compression:

Stored size: 868 Bytes

Contents

<div class="<%= stimulus_id %> w-full">
  <%= render component('ui/panel').new(title: t('.summary')) do %>
    <%= render component('ui/details_list').new(
      items: [
        { label: t('.subtotal'), value: number_to_currency(@order.item_total), class: 'font-semibold' },
        { label: t('.taxes'), value: number_to_currency(@order.additional_tax_total) },
        { label: t('.shipping'), value: number_to_currency(@order.shipment_total) },
        { label: link_to(t('.add_promo_code'), '#', class: "body-link"), value: number_to_currency(@order.promo_total) },
        { label: link_to(t('.adjustments'), solidus_admin.order_adjustments_path(@order), class: "body-link"), value: number_to_currency(@order.adjustment_total) },
        { label: t('.total'), value: number_to_currency(@order.total), class: 'font-semibold' }
      ]
    ) %>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/orders/show/summary/component.html.erb
solidus_admin-0.3.1 app/components/solidus_admin/orders/show/summary/component.html.erb
solidus_admin-0.3.0 app/components/solidus_admin/orders/show/summary/component.html.erb