This commit is contained in:
Gopesh Tulsyan 2014-09-11 13:32:03 +00:00
commit 5fc5aba344
11 changed files with 68 additions and 17 deletions

View file

@ -53,4 +53,13 @@
disabled: true, class: 'btn btn-primary disabled btn-danger', role: 'button'
- else
= link_to 'Delete',admin_user_path(user), method: :delete,
data: { confirm: 'Are you sure ?' }, class: 'btn btn-primary btn-danger'
data: { confirm: 'Are you sure ?' }, class: 'btn btn-primary btn-danger', id: "user-delete-#{user.id}"
:javascript
$(document).ready(function() {
$('#users').dataTable( {
"bPaginate": false,
"bLengthChange": false
} );
} );

View file

@ -33,3 +33,4 @@
= f.input :current_password, input_html: {autocomplete: 'off'},
hint: '(we need your current password to confirm password or email changes)'
= f.action :submit, as: :button, label: 'Update', button_html: {class: 'btn btn-primary'}
= link_to 'Delete', registration_path(resource_name), method: :delete , data: { confirm: 'Are you sure ?'},class: "btn btn-primary btn-danger"