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