Sha256: f0422ac770e5f80b751f4c58e29d0f0382531ff6c4339fec9a48c0d1cd06beec

Contents?: true

Size: 1.76 KB

Versions: 6

Compression:

Stored size: 1.76 KB

Contents

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

<% content_for :page_title do %>
  <%= Spree::RefundReason.model_name.human(count: :other) %>
<% end %>

<% content_for :page_actions do %>
  <ul class="actions inline-menu">
    <% if can?(:create, Spree::RefundReason) %>
      <li>
        <%= button_link_to Spree.t(:new_refund_reason), new_object_url, { icon: 'plus', id: 'admin_new_named_type' } %>
      </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(:active) %></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" class="<%= cycle('odd', 'even')%>">
          <td class="align-center">
            <%= named_type.name %>
          </td>
          <td class="align-center">
            <%= Spree.t(named_type.active? ? :say_yes : :say_no) %>
          </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="alpha twelve columns no-objects-found">
    <%= render 'spree/admin/shared/no_objects_found',
                 resource: Spree::RefundReason,
                 new_resource_url: new_object_url %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-1.3.2 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-1.3.1 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-1.3.0 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-1.3.0.rc2 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-1.3.0.rc1 app/views/spree/admin/refund_reasons/index.html.erb
solidus_backend-1.3.0.beta1 app/views/spree/admin/refund_reasons/index.html.erb