Skip to content
Snippets Groups Projects
Commit 8f744eaa authored by Arnaud Levy's avatar Arnaud Levy
Browse files

delete menu item

parent 71b7490d
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,14 @@
</div>
<% end %>
<% content_for :action_bar_left do %>
<%= link_to t('delete'),
admin_communication_website_menu_item_path(website_id: @item.website.id, menu_id: @item.menu.id, id: @item.id),
method: :delete,
data: { confirm: t('please_confirm') },
class: button_classes_danger if can?(:destroy, @item) %>
<% end %>
<% content_for :action_bar_right do %>
<%= link_to t('edit'),
edit_admin_communication_website_menu_item_path(@item, website_id: @website, menu_id: @menu.id),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment