Sha256: 83ca186e034fb50a9f7259b7d0b5ade3bac98a677345c06e6efddf0fd768971c

Contents?: true

Size: 1.22 KB

Versions: 32

Compression:

Stored size: 1.22 KB

Contents

<h1>Users</h1>

<form action='/admin/users' method='get' class='search_form'>
<input type='text' name='first_name_like' value="<%= @gen.params['first_name_like'] %>" placeholder='First name' />
<input type='text' name='last_name_like'  value="<%= @gen.params['last_name_like']  %>" placeholder='Last name' />
<input type='text' name='email_like'      value="<%= @gen.params['email_like']      %>" placeholder='Email' />
<input type='submit' value='Search' />
</form>

<p>
<a href='/admin/users/new'>New User</a> |
<a href='/admin/users/import'>Import CSV</a>
</p>

<table class='data' id='users_table'>
  <tr>
    <%= raw @gen.sortable_table_headings({
				'first_name' => 'First Name',
				'last_name, first_name'	=> 'Last Name',
				'username' => 'Username',
				'email'	=> 'Email'
			})
		%>
  </tr>
<% @users.each do |user| %>
  <tr onclick="window.location='/admin/users/<%= user.id %>/edit';">
    <td><%= user.first_name %></td>
    <td><%= user.last_name %></td>
    <td><%= user.username %></td>
    <td><%= user.email %></td>
  </tr>
<% end %>
</table>

<p><%= raw @gen.generate %></p>

<% content_for :caboose_js do %>
<script type='text/javascript'>
$(document).ready(function() { 
  var modal = new CabooseModal(500);
});
</script>
<% end %>

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
caboose-cms-0.5.213 app/views/caboose/users/index.html.erb
caboose-cms-0.5.212 app/views/caboose/users/index.html.erb
caboose-cms-0.5.211 app/views/caboose/users/index.html.erb
caboose-cms-0.5.210 app/views/caboose/users/index.html.erb
caboose-cms-0.5.209 app/views/caboose/users/index.html.erb
caboose-cms-0.5.208 app/views/caboose/users/index.html.erb
caboose-cms-0.5.207 app/views/caboose/users/index.html.erb
caboose-cms-0.5.206 app/views/caboose/users/index.html.erb
caboose-cms-0.5.205 app/views/caboose/users/index.html.erb
caboose-cms-0.5.204 app/views/caboose/users/index.html.erb
caboose-cms-0.5.203 app/views/caboose/users/index.html.erb
caboose-cms-0.5.202 app/views/caboose/users/index.html.erb
caboose-cms-0.5.201 app/views/caboose/users/index.html.erb
caboose-cms-0.5.200 app/views/caboose/users/index.html.erb
caboose-cms-0.5.199 app/views/caboose/users/index.html.erb
caboose-cms-0.5.198 app/views/caboose/users/index.html.erb
caboose-cms-0.5.197 app/views/caboose/users/index.html.erb
caboose-cms-0.5.196 app/views/caboose/users/index.html.erb
caboose-cms-0.5.195 app/views/caboose/users/index.html.erb
caboose-cms-0.5.194 app/views/caboose/users/index.html.erb