Meals index, WIP
This commit is contained in:
@@ -27,35 +27,11 @@
|
||||
<%= q.name %>
|
||||
</div>
|
||||
</td>
|
||||
<td class="order">
|
||||
<% [:up, :down, :left, :right].each do |direction| %>
|
||||
<%=
|
||||
if q.movable?(direction)
|
||||
link_to '', move_quantity_path(q, direction), {
|
||||
remote: true,
|
||||
method: :post,
|
||||
class: "icon icon-move icon-move-#{direction}"
|
||||
}
|
||||
else
|
||||
link_to '', '', {class: "icon", style: "visibility: hidden;"}
|
||||
end
|
||||
%>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="order"><%= order_links(q) %></td>
|
||||
<td class="domain"><%= q.domain %></td>
|
||||
<td class="description"><%= q.description %></td>
|
||||
<td class="formula"><%= checked_image q.formula %></td>
|
||||
<td class="action unwrappable">
|
||||
<%= link_to l(:button_child), new_child_quantity_path(q), {
|
||||
remote: true,
|
||||
class: "icon icon-add"
|
||||
} %>
|
||||
<%= link_to l(:button_edit), edit_quantity_path(q), {
|
||||
remote: true,
|
||||
class: "icon icon-edit"
|
||||
} %>
|
||||
<%= delete_link quantity_path(q), {remote: true, data: {}} %>
|
||||
</td>
|
||||
<td class="action unwrappable"><%= action_links(q) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user