Sha256: 55a0978cba99ded411e3d73aa52a0b34a4e79b9e6c3e4e148e140add07760c72

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

%h1 Users

%p= link_to_new_user

= ucbr_table_tag UcbRails::User do
  %thead
    %tr
      %th.min Admin?
      %th.min Inactive?
      %th First Name
      %th Last Name
      %th Email
      %th Phone
      %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/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
        ]
  });
  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ucb_rails-0.0.2 app/views/ucb_rails/admin/users/index.html.haml