1
0

Added Ingredient editing

Improved Ingredient to match Measurement functionality
This commit is contained in:
cryptogopher
2019-12-30 23:45:59 +01:00
parent 20deb944c3
commit a4ec6a0c12
21 changed files with 191 additions and 116 deletions

View File

@@ -40,6 +40,8 @@ module IngredientsHelper
end
def action_links(i)
link_to(l(:button_edit), edit_ingredient_path(i, view_mode: current_view),
{remote: true, class: "icon icon-edit"}) +
delete_link(ingredient_path(i), {remote: true, data: {}})
end
end