Sha256: 78fa47dbceebb069bf9b6fb10007c521176d20c33f84550aa93d5366847c6215

Contents?: true

Size: 881 Bytes

Versions: 1

Compression:

Stored size: 881 Bytes

Contents

<table class="table is-hoverable is-fullwidth">
  <thead>
  <tr>
    <th>ID</th>
    <th>name</th>
    <th>Note</th>
    <th>Order At</th>
    <th></th>
  </tr>
  </thead>

  <tbody>
  <% @orders.each do |order| %>
    <tr id="order_<%= order.id %>">
      <td><%= order.id %></td>
      <td>
        <% order.order_items.each do |oi| %>
          <p><%= oi.good.name %></p>
        <% end %>
      </td>
      <td><%= order.note %></td>
      <td><time data-controller="time"><%= order.created_at.to_s(:rfc822) %></time></td>
      <td>
        <% if Dinner.enabled? %>
          <%= link_to 'Note', edit_my_order_path(order), class: 'ui pink label' %>
          <%= link_to t('.destroy'), remove_my_order_path(order), method: :delete, data: { confirm: t('.confirm') }, local: true, class: 'ui red label' %>
        <% end %>
      </td>
    </tr>
  <% end %>
  </tbody>
</table>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_org-0.0.1 app/views/org/me/orders/dinners.html.erb