Sha256: 1a92fb8d9dea44d19baf176b0e70b02c7551c0aa48c7959468fc66fcca4cc19e
Contents?: true
Size: 1.28 KB
Versions: 49
Compression:
Stored size: 1.28 KB
Contents
<h1>New User</h1> <%% form_for(<%= namespace.blank? ? "@user" : "[:#{namespace}, @user]" %>) do |f| %> <%%= f.error_messages %> <p> <b>First name</b><br /> <%%= f.text_field :first_name %> </p> <p> <b>Last name</b><br /> <%%= f.text_field :last_name %> </p> <p> <b>Email</b><br /> <%%= f.text_field :email %> </p> <p> <b>Login</b><br /> <%%= f.text_field :login %> </p> <p> <b>Password</b><br /> <%%= f.password_field :password %> </p> <p> <b>Password confirmation</b><br /> <%%= f.password_field :password_confirmation %> </p> <p> <b>User Groups</b><br /> <ul style="list-style: none;"> <%% @user_groups_for_user.each_with_index do |ug,i| input_id = "ug_#{ug.id}" checked = (@user.user_group_ids.include?(ug.id) ? "checked" : "") %> <li id="li_<%%= input_id %>"> <label for="<%%= input_id %>"> <input id="<%%= input_id %>" name="<%%= input_id %>" type="checkbox" <%%= checked %>/> <%%= ug.name %> </label> </li> <%% end %> </ul> </p> <p> <%%= f.submit "Create" %> </p> <%% end %> <%%= link_to 'Back', <%= namespace.blank? ? "users_path" : "#{namespace}_users_path" %> %>
Version data entries
49 entries across 49 versions & 6 rubygems