1
0

Quantity destruction destroys dependent

Table data aligned.
Primary quantities highlighted.
This commit is contained in:
cryptogopher
2019-10-25 22:46:11 +02:00
parent c0e3fd2e85
commit baadd647f8
6 changed files with 16 additions and 10 deletions

View File

@@ -64,13 +64,13 @@
<% next if i.new_record? %>
<tr id="ingredient-<%= i.id %>" class="ingredient <%= 'hidden' if i.hidden %>">
<td class="name"><%= i.name %></td>
<td class="reference"><%= i.ref_amount %> [<%= i.ref_unit.shortname %>]</td>
<td class="reference value"><%= i.ref_amount %> [<%= i.ref_unit.shortname %>]</td>
<td class="group"><%= i.group %></td>
<td class="source">
<%= i.source.name if i.source.present? %>
<%= ", #{i.source_ident}" if i.source_ident.present? %>
</td>
<td><%= delete_link ingredient_path(i), data: {} %></td>
<td class="action"><%= delete_link ingredient_path(i), data: {} %></td>
</tr>
<% end %>
</tbody>