Sha256: e3bd4be07f900d073d07f9100ca0ce4f86e0c086582066f221ba3c1b420022da

Contents?: true

Size: 1.9 KB

Versions: 31

Compression:

Stored size: 1.9 KB

Contents

<%= render 'spree/admin/shared/settings_checkout_tabs' %>

<% admin_breadcrumb(t('spree.settings')) %>
<% admin_breadcrumb(t('spree.admin.tab.checkout')) %>
<% admin_breadcrumb(plural_resource_name(Spree::AdjustmentReason)) %>

<% content_for :page_actions do %>
  <ul class="actions inline-menu">
    <% if can?(:create, Spree::AdjustmentReason) %>
      <li>
        <%= link_to t('spree.new_adjustment_reason'), new_object_url, id: 'admin_new_named_type', class: 'btn btn-primary' %>
      </li>
    <% end %>
  </ul>
<% end %>

<% if @adjustment_reasons.any? %>
  <table class="index" id='listing_adjustment_reasons'>
    <colgroup>
      <col style="width: 65%">
      <col style="width: 20%">
      <col style="width: 15%">
    </colgroup>
    <thead>
      <tr data-hook="adjustment_reasons_header">
        <th><%= Spree::AdjustmentReason.human_attribute_name(:name) %></th>
        <th><%= Spree::AdjustmentReason.human_attribute_name(:state) %></th>
        <th class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <% @adjustment_reasons.each do |adjustment_reason| %>
        <tr id="<%= spree_dom_id adjustment_reason %>" data-hook="adjustment_reason_row">
          <td>
            <%= adjustment_reason.name %>
          </td>
          <td>
            <span class="pill pill-<%= adjustment_reason.active? ? 'active' : 'inactive' %>">
              <%= t(adjustment_reason.active? ? :active : :inactive, scope: 'spree') %>
            </span>
          </td>
          <td class="actions">
            <% if can? :edit, adjustment_reason %>
              <%= link_to_edit adjustment_reason, no_text: true %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="no-objects-found">
    <%= render 'spree/admin/shared/no_objects_found',
                 resource: Spree::AdjustmentReason,
                 new_resource_url: new_object_url %>
  </div>
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
solidus_backend-4.4.2 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.4.1 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.4.0 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.3.4 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.2.4 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.1.5 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.3.3 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.3.2 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.1.4 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.3.1 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.3.0 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.2.3 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.1.3 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.0.4 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-3.4.6 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.0.3 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.1.2 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.2.2 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-3.4.5 app/views/spree/admin/adjustment_reasons/index.html.erb
solidus_backend-4.2.1 app/views/spree/admin/adjustment_reasons/index.html.erb