Sha256: b9a29221db55a0e3f59326d991048229c06d6a45ad430fb8abf8dedfb463b490

Contents?: true

Size: 1.85 KB

Versions: 9

Compression:

Stored size: 1.85 KB

Contents

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

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

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

<% unless @tax_rates.any? %>
  <div class="no-objects-found">
    <%= 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><%= t(:zone) %></th>
        <th><%= t(:name) %></th>
        <th><%= t(:category) %></th>
        <th><%= t(:amount) %></th>
        <th><%= t(:included_in_price) %></th>
        <th><%= t(:show_rate_in_label) %></th>
        <th><%= 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) || t(:not_available) %></td>
        <td><%=tax_rate.name %></td>
        <td><%=tax_rate.tax_category.try(:name) || 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

9 entries across 9 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/views/spree/admin/tax_rates/index.html.erb
spree_core-1.3.4 app/views/spree/admin/tax_rates/index.html.erb
spree_core-1.3.3 app/views/spree/admin/tax_rates/index.html.erb
spree_core-1.3.2 app/views/spree/admin/tax_rates/index.html.erb
spree_core-1.3.1 app/views/spree/admin/tax_rates/index.html.erb
spree_core-1.3.0 app/views/spree/admin/tax_rates/index.html.erb
spree_core-1.3.0.rc2 app/views/spree/admin/tax_rates/index.html.erb
dup_spree_core-1.3.0.rc1 app/views/spree/admin/tax_rates/index.html.erb
spree_core-1.3.0.rc1 app/views/spree/admin/tax_rates/index.html.erb