Sha256: f3b787cba0fd49e7ceee9878894485a9a357e6a70dde711561c138abddf8dab2

Contents?: true

Size: 1.84 KB

Versions: 101

Compression:

Stored size: 1.84 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::RefundReason)) %>


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

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

Version data entries

101 entries across 101 versions & 2 rubygems

Version Path
solidus_backend-3.3.4 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.9 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.8 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.3.3 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.7 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.3.2 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.3.1 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.6 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.1.9 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.3.0 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.5 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.4 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.3 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.1.8 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.0.8 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.2 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.1 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.0 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.2.0.alpha app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-3.0.7 app/views/spree/admin/refund_reasons/index.html.erb