Sha256: 256a5548f4f0b61ac908633918b218f6edfbe5616563e06a951269046d746c06

Contents?: true

Size: 1.82 KB

Versions: 5

Compression:

Stored size: 1.82 KB

Contents

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

        <table class="table">
            <thead>
            <tr>
                <th id=""><%= t('plugins.ecommerce.table.name') %></th>
                <th id=""><%= t('plugins.ecommerce.table.status') %></th>
                <th id=""><%= t('plugins.ecommerce.table.description') %></th>
                <th><%= t('plugins.ecommerce.table.actions') %></th>
            </tr>
            </thead>
            <tbody>
            <%
               @shipping_methods.each do |row|
            %>
                <tr>
                    <td><%= row.name.to_s.translate %></td>
                    <td><%= row.status %></td>
                    <td><%= row.description.to_s.translate  %></td>
                    <td>
                        <%= link_to raw('<i class="fa fa-usd"></i> ' + "#{t('plugins.ecommerce.shipping_prices', default: 'Prices')}"), admin_plugins_ecommerce_shipping_method_prices_path(row.id), class: "btn btn-primary btn-xs" %>
                        <%= 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 @shipping_methods.empty? %>
        <%= will_paginate @shipping_methods, renderer: BootstrapPagination::Rails  %>
    </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

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