Sha256: d307e984f61f512eea050b3afb1753d95c90e4f9d59c17c65af82cc4e1430436

Contents?: true

Size: 919 Bytes

Versions: 4

Compression:

Stored size: 919 Bytes

Contents

<h1><%=t("Tax Rates") %></h1>
<table class="admin-report" width="545">
  <thead>
    <tr>
      <th><%=t("Zone")%></th>
      <th><%=t("Category")%></th>
      <th><%=t("Amount")%></th>
      <th><%=t("Tax Type")%></th>
      <th><%=t("Action")%></th>
    </tr>
  </thead>
  <tbody>
    <% @tax_rates.each do |tax_rate| %>
      <tr class="<%= cycle('even', 'odd') %>">
        <td><%=tax_rate.zone.name %></td>
        <td><%=tax_rate.tax_category.name %></td>
        <td><%=tax_rate.amount %></td>
        <td><%=TaxRate::TaxType.from_value tax_rate.tax_type %></td>
        <td>
          <%=link_to t("Edit"), edit_object_url(tax_rate) %> |
          <%=link_to t("Delete"), object_url(tax_rate), :method => :delete %>
        </td>
      </tr>
    <% end %>
    <% if @tax_rates.empty? %>
      <tr><td colspan="5">None.</td></tr>
    <% end %>
  </tbody>
</table>
<%= link_to t("New Tax Rate"), new_object_url %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree-0.4.1 vendor/extensions/tax_calculator/app/views/admin/tax_rates/index.html.erb
spree-0.4.0 vendor/extensions/tax_calculator/app/views/admin/tax_rates/index.html.erb
spree-0.5.0 vendor/extensions/tax_calculator/app/views/admin/tax_rates/index.html.erb
spree-0.5.1 vendor/extensions/tax_calculator/app/views/admin/tax_rates/index.html.erb