Sha256: 2db8d83f1226d6a5327e790fae3b7651dcbdaf3063b06bf3de716f2248ce2fed

Contents?: true

Size: 1.92 KB

Versions: 6

Compression:

Stored size: 1.92 KB

Contents

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

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

<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:new_tax_rate), new_object_url, :icon => 'icon-plus' %>
  </li>
<% end %>

<% unless @tax_rates.any? %>
  <div class="no-objects-found">
    <%= Spree.t(:no_results) %>
  </div>
<% else %>
  <table class="index">
    <colgroup>
      <col style="width: 15%">
      <col style="width: 15%">
      <col style="width: 10%">
      <col style="width: 10%">
      <col style="width: 10%">
      <col style="width: 10%">
      <col style="width: 15%">
      <col style="width: 15%">
    </colgroup>
    <thead>
      <tr data-hook="rate_header">
        <th><%= Spree.t(:zone) %></th>
        <th><%= Spree.t(:name) %></th>
        <th><%= Spree.t(:category) %></th>
        <th><%= Spree.t(:amount) %></th>
        <th><%= Spree.t(:included_in_price) %></th>
        <th><%= Spree.t(:show_rate_in_label) %></th>
        <th><%= Spree.t(:calculator) %></th>
        <th class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <% @tax_rates.each do |tax_rate|%>
      <tr id="<%= spree_dom_id tax_rate %>" data-hook="rate_row" class="<%= cycle('odd', 'even')%>">
        <td><%=tax_rate.zone.try(:name) || Spree.t(:not_available) %></td>
        <td><%=tax_rate.name %></td>
        <td><%=tax_rate.tax_category.try(:name) || Spree.t(:not_available) %></td>
        <td class="align-center"><%=tax_rate.amount %></td>
        <td class="align-center"><%=tax_rate.included_in_price %></td>
        <td class="align-center"><%=tax_rate.show_rate_in_label %></td>
        <td class="align-center"><%=tax_rate.calculator.to_s %></td>
        <td class="actions">
          <%= link_to_edit tax_rate, :no_text => true %>
          <%= link_to_delete tax_rate, :no_text => true %>
        </td>
      </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_backend-2.0.4 app/views/spree/admin/tax_rates/index.html.erb
spree_backend-2.0.3 app/views/spree/admin/tax_rates/index.html.erb
spree_backend-2.0.2 app/views/spree/admin/tax_rates/index.html.erb
spree_backend-2.0.1 app/views/spree/admin/tax_rates/index.html.erb
spree_backend-2.0.0 app/views/spree/admin/tax_rates/index.html.erb
spree_backend-2.0.0.rc1 app/views/spree/admin/tax_rates/index.html.erb