Sha256: 7524782181c1edcf4ae11602f6455c7e61ca3ef8691a493cc76da0fb77aa5af3

Contents?: true

Size: 1.08 KB

Versions: 10

Compression:

Stored size: 1.08 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>
  <%- @users.each do |u| %>
  <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 }, :method => :delete, :class => 'form_button', :data => { :confirm => 'Are you sure you want to delete ' + u.username + '?' }) if u.username != session[:user_username] %></td>
  </tr>
  <% end %>
</table>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
imagine_cms-4.2.4 app/views/management/users/index.html.erb
imagine_cms-4.1.4 app/views/management/users/index.html.erb
imagine_cms-4.2.3 app/views/management/users/index.html.erb
imagine_cms-4.2.2 app/views/management/users/index.html.erb
imagine_cms-4.2.1 app/views/management/users/index.html.erb
imagine_cms-4.2.0 app/views/management/users/index.html.erb
imagine_cms-4.1.3 app/views/management/users/index.html.erb
imagine_cms-4.1.2 app/views/management/users/index.html.erb
imagine_cms-4.1.1 app/views/management/users/index.html.erb
imagine_cms-4.1.0 app/views/management/users/index.html.erb