Sha256: 240c4d3e52901d2f2176c6ea2c307bd173cc7dd164e33313a0d00f5201d69e32

Contents?: true

Size: 1.8 KB

Versions: 24

Compression:

Stored size: 1.8 KB

Contents

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

<% content_for :page_title do %>
  <%= Spree.t(:listing_tax_categories) %>
<% end %>

<% content_for :page_actions do %>
  <ul class="actions inline-menu">
    <li>
      <%= button_link_to Spree.t(:new_tax_category), new_object_url, :icon => 'icon-plus', :id => 'admin_new_tax_categories_link' %>
    </li>
  </ul>
<% end %>

<% if @tax_categories.any? %>
<table class="index" id='listing_tax_categories' data-hook>
  <colgroup>
    <col style="width: 30%" />
    <col style="width: 40%" />
    <col style="width: 15%" />
    <col style="width: 15%" />
  </colgroup>
  <thead>
    <tr data-hook="tax_header">
      <th><%= Spree.t(:name) %></th>
      <th><%= Spree.t(:description) %></th>
      <th><%= Spree.t(:default) %></th>
      <th class="actions"></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" class="<%= cycle('odd', 'even')%>">
        <td class="align-center"><%= tax_category.name %></td>
        <td class="align-center"><%= tax_category.description %></td>
        <td class="align-center"><%= tax_category.is_default? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
        <td class="actions">
          <%= link_to_edit tax_category, :no_text => true %>
          <%= link_to_delete tax_category, :no_text => true %>
      </tr>
    <% end %>
  </tbody>
</table>
<% else %>
  <div class="alpha twelve columns no-objects-found">
    <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/tax_category')) %>,
    <%= link_to Spree.t(:add_one), spree.new_admin_tax_category_path %>!
  </div>
<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
spree_backend-2.1.12 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.1.11 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.1.10 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.0.13 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.1.9 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.1.8 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.0.12 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.1.7 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.0.11 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.0.10 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.2.1 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.1.6 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.2.0 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.1.5 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.0.9 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.1.4 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.0.8 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.1.3 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.0.7 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.1.2 app/views/spree/admin/tax_categories/index.html.erb