1
0

Changes in ingredients index

This commit is contained in:
cryptogopher 2019-09-23 00:24:58 +02:00
parent 9cbd540c43
commit 2e9d353935
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@
<thead> <thead>
<tr> <tr>
<th><%= l(:field_name) %></th> <th><%= l(:field_name) %></th>
<th><%= l(:field_ref_amount) %></th> <th><%= l(:field_reference) %></th>
<th><%= l(:field_group) %></th> <th><%= l(:field_group) %></th>
<th><%= l(:field_source) %></th> <th><%= l(:field_source) %></th>
<th style="width:15%"><%= l(:field_action) %></th> <th style="width:15%"><%= l(:field_action) %></th>
@ -60,8 +60,8 @@
<tbody> <tbody>
<% @ingredients.each do |i| %> <% @ingredients.each do |i| %>
<tr id="ingredient-<%= i.id %>" class="ingredient <%= 'hidden' if i.hidden %>"> <tr id="ingredient-<%= i.id %>" class="ingredient <%= 'hidden' if i.hidden %>">
<td class="ingredientname"><%= i.name %></td> <td class="name"><%= i.name %></td>
<td class="ref_amount"><%= i.ref_amount %> [<%= i.ref_unit.shortname %>]</td> <td class="reference"><%= i.ref_amount %> [<%= i.ref_unit.shortname %>]</td>
<td class="group"><%= i.group %></td> <td class="group"><%= i.group %></td>
<td class="source"><%#= i.source %></td> <td class="source"><%#= i.source %></td>
<td><%= delete_link ingredient_path(i), data: {} %></td> <td><%= delete_link ingredient_path(i), data: {} %></td>

View File

@ -2,7 +2,7 @@
en: en:
body_trackers_menu_caption: 'Body trackers' body_trackers_menu_caption: 'Body trackers'
field_action: 'Action' field_action: 'Action'
field_ref_amount: 'Reference amount' field_reference: 'Reference'
field_group: 'Group' field_group: 'Group'
field_source: 'Source' field_source: 'Source'
field_nutrients: 'Nutrients:' field_nutrients: 'Nutrients:'