Sha256: 8c3e7992a74b84bf45753c8ceef7e986af26ad30c1efc76eef80ed78147d114f

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

<div class="panel panel-default">
  <div class="panel-heading">
    <h4><span class="fa fa-credit-card"></span> <%= t('plugin.ecommerce.payment_methods') %></h4>
    <%= link_to raw("<i class='fa fa-plus'></i> #{t('plugin.ecommerce.add_payment_method')}"), {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.method_type') %></th>
          <th id=""><%= t('plugin.ecommerce.table.status') %></th>
          <th id=""><%= t('plugin.ecommerce.table.description') %></th>
          <th><%= t('plugin.ecommerce.table.actions') %></th>
        </tr>
      </thead>
      <tbody>
        <%
           @payment_methods.each do |row|
             row = row.decorate
        %>
            <tr>
              <td><%= row.slug %></td>
              <td><%= row.name %></td>
              <td><%= row.method_text %></td>
              <td><%= raw row.the_status %></td>
              <td><%= row.description.translate %></td>
              <td>
                <%= link_to raw('<i class="fa fa-eye"></i>'), {action: :show, id: row.id}, class: "btn btn-info btn-xs", title: "#{t('camaleon_cms.admin.button.preview')}" %>
                <%= 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 @payment_methods.empty? %>
    <%= will_paginate @payment_methods, renderer: BootstrapPagination::Rails %>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

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