Sha256: 11813bab9fc8f6094867d5444e38e3b8a41dcaaec16bdffce0b0bf7cdd1aa39f
Contents?: true
Size: 1.15 KB
Versions: 6
Compression:
Stored size: 1.15 KB
Contents
<h2>Manage Users</h2><br/> <%= link_to raw('Create a new user »'), :action => 'create' %> <%= flash_message %> <table cellspacing="3" cellpadding="1" border="0" width="95%"> <tr> <td bgcolor="#dedede" width="26%"><b>USERNAME</b></td> <td bgcolor="#dedede" width="22%"><b>FIRST NAME</b></td> <td bgcolor="#dedede" width="22%"><b>LAST NAME</b></td> <td bgcolor="#dedede" width="10%"><b>Active?</b></td> <td bgcolor="#dedede" width="10%"> </td> <td bgcolor="#dedede" width="10%"> </td> </tr> <% for u in @users %> <tr> <td><%= link_to u.username, :action => 'edit', :id => u %></td> <td><%= u.first_name %></td> <td><%= u.last_name %></td> <td><%= u.active ? 'Y' : 'N' %> <td><%= button_to((u.active ? 'Disable' : 'Enable'), { :action => (u.active ? 'disable' : 'enable'), :id => u}, { :class => 'form_button' }) if u.username != session[:user_username] %></td> <td><%= button_to('Delete', { :action => 'destroy', :id => u }, { :confirm => 'Are you sure you want to delete ' + u.username + '?', :class => 'form_button' }) if u.username != session[:user_username] %></td> </tr> <% end %> </table><br/>
Version data entries
6 entries across 6 versions & 1 rubygems