Skip to content

Commit

Permalink
Dishes index HTML display orders
Browse files Browse the repository at this point in the history
  • Loading branch information
petros committed Mar 8, 2016
1 parent 0898a22 commit 5c9e1c6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions app/views/dishes/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,28 @@
<%= link_to 'Νέο πιάτο', new_dish_path, class: "btn btn-default" %>

</div>

<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">Ποιοι πεινάνε στο coho αυτή τη στιγμή</div>
<div class="panel-body">
<p>Παρακάτω είναι όλοι όσοι πεινάνε στο coho και τι θέλουν να φάνε.</p>
</div>

<!-- Table -->
<table class="table">
<% @orders.each do |order| %>
<tr>
<td>
<%= order.hungry_person.name %>
</td>
<td>
<%= order.dish.name %>
</td>
<td>
<%= order.quantity %>
</td>
</tr>
<% end %>
</table>
</div>

0 comments on commit 5c9e1c6

Please sign in to comment.