Sha256: 854ab1f6812ecd8c4cb46ab09e9d3d52538b41d5b8a9e60fade0889a7eee6a0e

Contents?: true

Size: 1.93 KB

Versions: 15

Compression:

Stored size: 1.93 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 => '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: 20%" />
    <col style="width: 10%" />
    <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(:tax_code) %></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.tax_code %></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

15 entries across 15 versions & 2 rubygems

Version Path
spree_backend-2.4.10 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.9 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.8 app/views/spree/admin/tax_categories/index.html.erb
solidus_backend-1.0.0.pre app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.7 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.6 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.5 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.4 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.3 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.2 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.1 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.0 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.0.rc3 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.0.rc2 app/views/spree/admin/tax_categories/index.html.erb
spree_backend-2.4.0.rc1 app/views/spree/admin/tax_categories/index.html.erb