Sha256: eaa380c5d7b74ecdb20caaed9db4313673089c1bc9de935ef65785f64d8e6bfc

Contents?: true

Size: 1.05 KB

Versions: 36

Compression:

Stored size: 1.05 KB

Contents

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

<p><%= button_to 'Create New User', new_user_path, :method => :get %></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

36 entries across 36 versions & 1 rubygems

Version Path
imagine_cms-4.0.1 app/views/management/users/index.html.erb
imagine_cms-4.0.0 app/views/management/users/index.html.erb
imagine_cms-3.0.33 app/views/management/users/index.html.erb
imagine_cms-3.0.32 app/views/management/users/index.html.erb
imagine_cms-3.0.31 app/views/management/users/index.html.erb
imagine_cms-3.0.30 app/views/management/users/index.html.erb
imagine_cms-3.0.29 app/views/management/users/index.html.erb
imagine_cms-3.0.28 app/views/management/users/index.html.erb
imagine_cms-3.0.27 app/views/management/users/index.html.erb
imagine_cms-3.0.26 app/views/management/users/index.html.erb
imagine_cms-3.0.25 app/views/management/users/index.html.erb
imagine_cms-3.0.24 app/views/management/users/index.html.erb
imagine_cms-3.0.23.1 app/views/management/users/index.html.erb
imagine_cms-3.0.23 app/views/management/users/index.html.erb
imagine_cms-3.0.22 app/views/management/users/index.html.erb
imagine_cms-3.0.21 app/views/management/users/index.html.erb
imagine_cms-3.0.20 app/views/management/users/index.html.erb
imagine_cms-3.0.19 app/views/management/users/index.html.erb
imagine_cms-3.0.18 app/views/management/users/index.html.erb
imagine_cms-3.0.17 app/views/management/users/index.html.erb