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