Add default delete modal usage:

- <%= render 'layouts/delete_modal', delete_options: {title: '', warning: '', cancel: '', submit: '' } %>
 - in default index, just set title, warning, cancel and submit in quick_edit if needed
This commit is contained in:
chris committed 2013-07-29 14:29:37 +08:00
1 parent b3cdffb59e
commit d434b878a7
8 files changed
+33 -32

No files matched your search

@@ -5,6 +5,7 @@
quick_edit_link type: 'detail'
quick_edit_link type: 'delete',
link: 'panel_announcement_back_end_bulletin_path'
# can have: title, warning, cancel and submit values
quick_edit_link type: 'approval',
link: 'panel_announcement_back_end_bulletin_approval_preview_path'
quick_edit_link type: 'reject_reason'