Sha256: 276d1cd3bd37e3256c85802cf7fb6d2b2e8852c34d31898a0031a755ddcc889b

Contents?: true

Size: 1.9 KB

Versions: 6

Compression:

Stored size: 1.9 KB

Contents

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

        <table class="table">
            <thead>
            <tr>
                <th><%= t('plugins.ecommerce.table.code')%></th>
                <th><%= t('plugins.ecommerce.product.price')%></th>
                <th><%= t('plugins.ecommerce.table.min_weight') %></th>
                <th><%= t('plugins.ecommerce.table.max_weight') %></th>
                <th><%= t('plugins.ecommerce.table.actions') %></th>
            </tr>
            </thead>
            <tbody>
            <%
               @prices.each do |id, row|
            %>
                <tr>
                    <td><%= row[:code] %></td>
                    <td><%= e_parse_price(row[:price]) %></td>
                    <td><%= row[:min_weight] %> <%= current_site.current_weight %></td>
                    <td><%= row[:max_weight] %> <%= current_site.current_weight %></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')}" %>
                        <%= link_to raw('<i class="fa fa-times"></i>'), {action: :destroy, id: row[:id] }, method: :delete, data: { confirm: t('camaleon_cms.admin.message.delete') }, class: "btn btn-danger btn-xs", title: "#{t('camaleon_cms.admin.button.delete')}" %>
                    </td>
                </tr>
            <% end  %>
            </tbody>
        </table>
        <%= content_tag("div", raw(t('camaleon_cms.admin.message.data_found_list')), class: "alert alert-warning") if @prices.empty? %>
    </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
camaleon_ecommerce-2.0.4 app/views/plugins/ecommerce/admin/prices/index.html.erb
camaleon_ecommerce-2.0.3 app/views/plugins/ecommerce/admin/prices/index.html.erb
camaleon_ecommerce-2.0.2 app/views/plugins/ecommerce/admin/prices/index.html.erb
camaleon_ecommerce-2.0.1 app/views/plugins/ecommerce/admin/prices/index.html.erb
camaleon_ecommerce-2.0.0 app/views/plugins/ecommerce/admin/prices/index.html.erb
camaleon_ecommerce-1.2.1 app/views/plugins/ecommerce/admin/prices/index.html.erb