debt-manager/app/views/bubbles/index.html.erb

20 lines
566 B
Plaintext
Raw Normal View History

<%= link_to "Créer une bulle", new_bubble_path %>
<table>
<tr>
<th>Nom</th>
<th>Description</th>
<th>Actions</th>
</tr>
<% @bubbles.each do |bubble| %>
<tr style="color: <%= bubble.color %>">
<td><%= bubble.name %></td>
<td><%= bubble.description %></td>
<td>
<%= link_to "Voir", bubble_path(bubble) %>
<%= link_to "Éditer", edit_bubble_path(bubble) %>
<%= link_to "Supprimer", bubble_confirm_destroy_path(bubble) %>
</td>
</tr>
<% end %>
</table>