Sha256: ffe7bc04d674926b62ffbfed7660d3a1d39c5959d2a5762e6e9657811b015b99

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

<h2>CMS &raquo; Users</h2>

<p><%= button_to 'Create New User', :action => 'create' %></p>

<%= flash_message %>

<table cellpadding="3" width="95%" class="imagine-management">
  <tr>
    <th width="26%">Username</th>
    <th width="22%">First Name</th>
    <th width="22%">Last Name</th>
    <th width="10%">Active?</th>
    <td bgcolor="#dedede" width="10%">&nbsp;</td>
    <td bgcolor="#dedede" width="10%">&nbsp;</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>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
imagine_cms-3.0.0 app/views/management/users/index.html.erb
imagine_cms-3.0.0.beta13 app/views/management/users/index.html.erb
imagine_cms-3.0.0.beta12 app/views/management/users/index.html.erb
imagine_cms-3.0.0.beta11 app/views/management/users/index.html.erb