Sha256: 5be19bed8069633d5a055df5e7c3f4079c2b217457d3794d2ffdbfe3c1a827dc

Contents?: true

Size: 1.8 KB

Versions: 1

Compression:

Stored size: 1.8 KB

Contents

<% content_for :page_title do %>
  <%= Spree.t(:recurring_orders) %>
<% end %>

<% if @recurring_orders.any? %>
  <table class="index responsive" id="listing_orders" data-hook>
    <colgroup>
      <col style="width: 25%;">
      <col style="width: 25%;">
      <col style="width: 15%;">
      <col style="width: 15%;">
      <col style="width: 20%;">
    </colgroup>
    <thead>
      <tr>
        <th><%= Spree.t(:original_order_number, resource: I18n.t(:other, :scope => 'activerecord.attributes.spree/recurring_order')) %></th>
        <th><%= Spree.t(:customer_email, resource: I18n.t(:other, :scope => 'activerecord.attributes.spree/recurring_order')) %></th>
        <th><%= Spree.t(:customer_phone, resource: I18n.t(:other, :scope => 'activerecord.attributes.spree/recurring_order')) %></th>
        <th><%= Spree.t(:active?, resource: I18n.t(:other, :scope => 'activerecord.attributes.spree/recurring_order')) %></th>
        <th><%= Spree.t(:created_at, resource: I18n.t(:created_at, :scope => 'activerecord.attributes.spree/recurring_order')) %></th>
      </tr>
    </thead>
    <tbody>
      <% @recurring_orders.each do |order| %>
        <tr class="<%= cycle('odd', 'even') %>">
          <td class="align-center"><%= link_to order.original_order.number, edit_admin_order_path(order.original_order) %></td>
          <td class="align-center"><%= mail_to order.email %></td>
          <td class="align-center"><%= mail_to order.phone %></td>
          <td class="align-center">YES</td>
          <td class="align-center"><%= l (order.created_at).to_date %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alpha twelve columns no-objects-found">
    <%= Spree.t(:no_recurring_orders_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/recurring_order')) %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_recurring_order-2.1.3 app/views/spree/admin/recurring_orders/index.html.erb