Sha256: b7ad411cc9e73357455754c5f27b1ec194e7d6351b79e74b522ec1d99f105cc9

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 KB

Contents

<div class="card-header">
  <h3 class="card-title mb-0 h6"><%= Spree.t(:order_adjustments) %></h3>
</div>
<div class="table-responsive border rounded bg-white">
  <table class="table border rounded adjustments" data-hook="adjustments">
    <thead data-hook="adjustmment_head">
      <tr>
        <th><%= Spree.t(:adjustable) %></th>
        <th><%= Spree.t(:description) %></th>
        <th class="text-center"><%= Spree.t(:amount) %></th>
        <th class="text-center"><%= Spree.t(:status) %></th>
        <th class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <%= render partial: "adjustment", collection: @adjustments %>
    </tbody>
  </table>
</div>
<% if can?(:edit, Spree::Adjustment) %>
  <div class="card-footer">
    <div class="row text-center pb-0">
      <div class="col-12 col-lg-6">
        <%= button_to Spree.t(:open_all_adjustments), open_adjustments_admin_order_path(@order), method: :put, class: "btn btn-primary" %>
      </div>
      <div class="col-12 col-lg-6">
        <%= button_to Spree.t(:close_all_adjustments), close_adjustments_admin_order_path(@order), method: :put, class: "btn btn-danger" %>
      </div>
    </div>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-4.8.3 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-4.8.2 app/views/spree/admin/adjustments/_adjustments_table.html.erb
spree_backend-4.8.1 app/views/spree/admin/adjustments/_adjustments_table.html.erb