Sha256: 5cb3671ea08e036343e8a34a567c34b6207e0b85b5ba1de9997c9fd4ed22344c

Contents?: true

Size: 1.63 KB

Versions: 133

Compression:

Stored size: 1.63 KB

Contents

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

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:new_tax_category), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_tax_categories_link' %>
<% end if can? :create, Spree::TaxCategory %>

<% if @tax_categories.any? %>
<table class="table" id='listing_tax_categories' data-hook>
  <thead>
    <tr data-hook="tax_header">
      <th><%= Spree.t(:name) %></th>
      <th><%= Spree.t(:tax_code) %></th>
      <th><%= Spree.t(:description) %></th>
      <th><%= Spree.t(:default) %></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% @tax_categories.each do |tax_category|
         @edit_url = edit_admin_tax_category_path(tax_category)
         @delete_url = admin_tax_category_path(tax_category)
    %>
      <tr id="<%= spree_dom_id tax_category %>" data-hook="tax_row">
        <td><%= tax_category.name %></td>
        <td><%= tax_category.tax_code %></td>
        <td><%= tax_category.description %></td>
        <td><%= tax_category.is_default? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
        <td class="actions actions-2 text-right">
          <%= link_to_edit(tax_category, no_text: true) if can? :edit, tax_category %>
          <%= link_to_delete(tax_category, no_text: true) if can? :delete, tax_category %>
      </tr>
    <% end %>
  </tbody>
</table>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::TaxCategory)) %>,
    <%= link_to(Spree.t(:add_one), new_object_url) if can? :create, Spree::TaxCategory %>!
  </div>
<% end %>

Version data entries

133 entries across 133 versions & 2 rubygems

Version Path
goca-spree-backend-3.1.14.rails.5.0.1 app/views/spree/admin/tax_categories/index.html.erb
goca-spree-backend-3.1.14.rails.5.0 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.0.9 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.1.15 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.1.14 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.0.8 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-3.7.14.1 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.1.13.1 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.0.7.1 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.0.7 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-3.7.14 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.1.13 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.0.6 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-3.7.13 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.0.5 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.1.12 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-3.7.12 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.0.4 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-3.7.11 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-4.1.11 app/views/spree/admin/tax_categories/index.html.erb