Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
deleting sections returns!(refs https://trello.com/c/9reBe6pn/514--)
Browse files Browse the repository at this point in the history
  • Loading branch information
nutsoriginal committed Feb 27, 2017
1 parent 3889f13 commit ebcc7af
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/views/web/admin/workshops/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@
%th= Workshop.human_attribute_name :title
%th
.nowrap= Workshop.human_attribute_name :created_at
%th
%th Редактировать
%th Удалить
%tbody
- @workshops.each do |workshop|
%tr
%td= link_to workshop.title, edit_admin_workshop_path(workshop)
%td
.nowrap= l workshop.created_at
%td
.pull-right.btn-group
= link_to edit_admin_workshop_path(workshop), class: 'btn btn-mini' do
%i.icon-pencil
-#= link_to admin_workshop_path(workshop), class: 'btn btn-mini', method: :delete do
-# %i.icon-trash
= link_to edit_admin_workshop_path(workshop), class: 'btn btn-mini' do
%i.icon-pencil
%td
= link_to admin_workshop_path(workshop), class: 'btn btn-mini', method: :delete, :data => { :confirm => 'Are you sure?' } do
%i.icon-trash

0 comments on commit ebcc7af

Please sign in to comment.