app/views/ucb_rails/admin/users/index.html.haml in ucb_rails-0.0.2 vs app/views/ucb_rails/admin/users/index.html.haml in ucb_rails-0.0.3

- old
+ new

@@ -1,10 +1,10 @@ %h1 Users %p= link_to_new_user -= ucbr_table_tag UcbRails::User do += ucbr_table_tag UcbRails::User, data: {url: ucb_rails_admin_users_path(format: "json")} do %thead %tr %th.min Admin? %th.min Inactive? %th First Name @@ -14,27 +14,9 @@ %th.dt Last Request At %th UID %th.min Edit %th.min Delete %tbody.highlight - = render partial: 'ucb_rails/admin/users/user', collection: @users + =# render partial: 'ucb_rails/admin/users/user', collection: @users = render :partial => 'ucb_rails/lps/modal' - -:javascript - $('#ucb_rails_users').dataTable({ - "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>", - "sPaginationType": "bootstrap", - "bStateSave": true, - "iDisplayLength": 20, - "aLengthMenu": [[10, 20, 50, -1], [10, 20, 50, 'All']], - "aaSorting": [[ 5, "desc" ]], - "aoColumnDefs": [ - { "aDataSort": [ 0, 2, 3 ], "aTargets": [ 0 ] }, // admin - { "aDataSort": [ 1, 2, 3 ], "aTargets": [ 0 ] }, // active - { "aDataSort": [ 1, 2 ], "aTargets": [ 2 ] }, // first name - { "aDataSort": [ 2, 1], "aTargets": [ 3 ] }, // last name - { "bSortable": false, "aTargets": [ 8 ] }, // edit - { "bSortable": false, "aTargets": [ 9 ] }, // delete - ] - }); \ No newline at end of file