Sha256: cffce6e6415d6e3cc2fb15f51d4a548e5d4b2093f6c9fa2e74c34ca34065800d

Contents?: true

Size: 1.48 KB

Versions: 98

Compression:

Stored size: 1.48 KB

Contents

<% content_for :page_title do %>
  <%= plural_resource_name(Spree::ReimbursementType) %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:new_reimbursement_type), new_object_url, { :class => "btn-success", :icon => 'add', :id => 'admin_new_reimbursement_type' } %>
<% end if can?(:create, Spree::ReimbursementType) %>

<% if @reimbursement_types.any? %>
  <table class="table" id='listing_reimbursement_types' data-hook>
    <thead>
      <tr data-hook="reimbursement_types_header">
        <th><%= Spree.t(:name) %></th>
        <th><%= Spree.t(:type) %></th>
        <th class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <% @reimbursement_types.each do |reimbursement_type| %>
        <tr id="<%= spree_dom_id reimbursement_type %>" data-hook="reimbursement_type_row">
          <td class="align-center">
            <%= reimbursement_type.name.humanize %>
          </td>
          <td>
            <%= reimbursement_type.type %>
          </td>
          <td class="actions actions-2 text-right">
            <%= link_to_edit reimbursement_type, no_text: true, class: 'edit' if can?(:edit, reimbursement_type) %>
            <%= link_to_delete reimbursement_type, no_text: true if can?(:delete, reimbursement_type) %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::ReimbursementType)) %>
  </div>
<% end %>

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
spree_backend-4.1.8 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.7 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.6 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.5 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.4 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.3 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.2 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.1 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.0 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.0.rc3 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.0.rc2 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.1.0.rc1 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-3.4.6 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-3.7.10 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.0.3 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-3.7.9 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.0.2 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-3.7.8 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-4.0.1 app/views/spree/admin/reimbursement_types/index.html.erb
spree_backend-3.7.7 app/views/spree/admin/reimbursement_types/index.html.erb