Sha256: 4fc7b87e5f6c930b7f8d13b8a2d2b1d69bd32cbc12a2450279876d2a3b452a6f

Contents?: true

Size: 1.9 KB

Versions: 1

Compression:

Stored size: 1.9 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.id') %></th>
                <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.slug %></td>
                    <td><%= row.name %></td>
                    <td><%= row.status %></td>
                    <td><%= row.description  %></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

1 entries across 1 versions & 1 rubygems

Version Path
camaleon_ecommerce-1.2.1 app/views/plugins/ecommerce/admin/shipping_methods/index.html.erb