mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Fix the delete confirmation
This commit is contained in:
parent
0866d71eff
commit
a049ad612d
@ -4,4 +4,4 @@
|
||||
%td= admin_user.last_sign_in_ip
|
||||
%td{ class: :actions }
|
||||
- unless admin_user == current_admin_user
|
||||
= link_to 'Delete', admin_admin_user_path(admin_user), method: :delete, confirm: 'Are you sure you wish to delete this Admin User?'
|
||||
= link_to 'Delete', admin_admin_user_path(admin_user), method: :delete, data: { confirm: 'Are you sure you wish to delete this Admin User?' }
|
||||
|
||||
@ -4,4 +4,4 @@
|
||||
%td= category.base_colour
|
||||
%td{ class: :actions }
|
||||
= link_to 'Edit', edit_admin_category_path(category)
|
||||
= link_to 'Destroy', [:admin, category], confirm: 'Are you sure?', method: :delete
|
||||
= link_to 'Destroy', [:admin, category], data: { confirm: 'Are you sure?' }, method: :delete
|
||||
|
||||
@ -4,4 +4,4 @@
|
||||
%td{ class: :actions }
|
||||
= link_to 'Show', [:admin, page]
|
||||
= link_to 'Edit', edit_admin_page_path(page)
|
||||
= link_to 'Destroy', [:admin, page], confirm: 'Are you sure?', method: :delete
|
||||
= link_to 'Destroy', [:admin, page], data: { confirm: 'Are you sure?' }, method: :delete
|
||||
|
||||
@ -2,4 +2,4 @@
|
||||
= link_to image_tag(photo.image.admin.url, title: photo.title), photo.image.url
|
||||
.actions
|
||||
= link_to 'Edit', edit_admin_photo_path(photo)
|
||||
= link_to 'Destroy', [:admin, photo], confirm: 'Are you sure?', method: :delete
|
||||
= link_to 'Destroy', [:admin, photo], data: { confirm: 'Are you sure?' }, method: :delete
|
||||
|
||||
Loading…
Reference in New Issue
Block a user