23 lines
486 B
Plaintext
23 lines
486 B
Plaintext
|
<h1><%= @bubble.name %></h1>
|
||
|
<p><%= @bubble.description %></p>
|
||
|
<%= link_to "Nouvelle dépense", new_bubble_spending_path(@bubble) %>
|
||
|
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Montant</th>
|
||
|
<th>Origine</th>
|
||
|
<th>Raison</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @spendings.each do |spending| %>
|
||
|
<tr>
|
||
|
<td><%= number_to_currency(spending.amount, unit: "€") %></td>
|
||
|
<td><%= spending.owner.email %></td>
|
||
|
<td><%= spending.description %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|