Sha256: ef04f28f273f9224ab9a78f8520259a5fb4bcc11e2ce577e49f214a4e049d402

Contents?: true

Size: 1.12 KB

Versions: 23

Compression:

Stored size: 1.12 KB

Contents

<h1>Users</h1>

<p><a href='/users/new'>New User</a></p>

<form action='/users' method='get'>
<table cellpadding='4' cellspacing='0' border='0'>
<tr><td>First name: 	</td><td><input type='text' name='first_name' value='<%= @gen.params['first_name'] %>' style='width: 200px;' /></td></tr>
<tr><td>Last name: 	  </td><td><input type='text' name='last_name' 	value='<%= @gen.params['last_name']  %>' style='width: 200px;' /></td></tr>
<tr><td>Username: 		</td><td><input type='text' name='username' 	value='<%= @gen.params['username'] 	 %>' style='width: 200px;' /></td></tr>
</table><br />
<p><input type='submit' value='Search' /></p>
</form>

<table class='data'>
  <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='/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>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
caboose-cms-0.2.57 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.55 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.54 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.52 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.50 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.49 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.48 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.47 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.46 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.45 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.44 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.43 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.42 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.41 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.40 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.39 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.38 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.37 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.36 app/views/caboose/pages/index.html.erb
caboose-cms-0.2.35 app/views/caboose/pages/index.html.erb