Sha256: cf9f97de3022704b8d693ba0274f052e1c1727c5dd6d36dbe76f564aa1156763

Contents?: true

Size: 1.7 KB

Versions: 3

Compression:

Stored size: 1.7 KB

Contents

<div class="panel panel-default">
    <div class="panel-heading">
        <h4><span class="fa fa-tag"></span> <%= t('plugin.ecommerce.tax_rates') %></h4>
        <%= link_to raw("<i class='fa fa-plus'></i> #{t('plugin.ecommerce.add_tax_rate')}"), {action: :new}, class: "btn btn-primary pull-right" %>
    </div>
    <div class="panel-body">

        <table class="table">
            <thead>
            <tr>
                <th id=""><%= t('plugin.ecommerce.table.id') %></th>
                <th id=""><%= t('plugin.ecommerce.table.name') %></th>
                <th id=""><%= t('plugin.ecommerce.table.rate') %></th>
                <th id=""><%= t('plugin.ecommerce.table.status') %></th>
                <th><%= t('plugin.ecommerce.table.actions') %></th>
            </tr>
            </thead>
            <tbody>
            <%
               @tax_rates.each do |row|
                 row = row.decorate
                 options = row.options
            %>
                <tr>
                    <td><%= row.id %></td>
                    <td><%= row.name %></td>
                    <td><%= options[:rate] %>%</td>
                    <td><%= raw row.the_status %></td>
                    <td>
                        <%= link_to raw('<i class="fa fa-edit"></i>'), {action: :edit, id: row.id }, class: "btn btn-default btn-xs", title: "#{t('camaleon_cms.admin.button.edit')}" %>
                    </td>
                </tr>
            <% end  %>


            </tbody>
        </table>
        <%= content_tag("div", raw(t('camaleon_cms.admin.message.data_found_list')), class: "alert alert-warning") if @tax_rates.empty? %>
        <%= will_paginate @tax_rates, renderer: BootstrapPagination::Rails  %>
    </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
camaleon_ecommerce-1.2 app/views/plugins/ecommerce/admin/tax_rates/index.html.erb
camaleon_ecommerce-1.1 app/views/plugins/ecommerce/admin/tax_rates/index.html.erb
camaleon_ecommerce-0.0.4 app/views/plugins/ecommerce/admin/tax_rates/index.html.erb