Sha256: 3b93f87c9feb14321683bc0a869958b58d12daf2e442b301c9e80069c15b51ae

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

<%= render :partial => 'admin/shared/configuration_menu' %>

<div class="toolbar" data-hook="toolbar">
  <ul class="actions">
    <li>
      <p><%= button_link_to t("new_tax_category"), new_object_url,  :icon => 'add',
                                                                    :id => 'admin_new_tax_categories_link' %>
    </p>
    </li>
  </ul>
  <br class="clear">
</div>


<h1><%=t("listing_tax_categories")%></h1>
<table class="index" id='listing_tax_categories' data-hook>
  <thead>
    <tr data-hook="tax_header">
      <th><%= t("name") %></th>
      <th><%= t("description") %></th>
      <th><%= 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="<%= dom_id tax_category %>" data-hook="tax_row">
        <td><%= tax_category.name %></td>
        <td><%= tax_category.description %></td>
        <td><%= tax_category.is_default.to_s.titleize %></td>
        <td class="actions">
          <%=link_to_edit tax_category, :class => 'edit' %> &nbsp;
          <%=link_to_delete tax_category %>
      </tr>
    <% end %>
    <% if @tax_categories.empty? %>
      <tr data-hook="tax_none"><td colspan="3"><%= t(:none) %></td></tr>
    <% end %>
  </tbody>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_core-0.70.0.rc2 app/views/admin/tax_categories/index.html.erb
spree_core-0.70.RC1 app/views/admin/tax_categories/index.html.erb