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 %>/>&nbsp;&nbsp;<%%= 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

Version Path
andrewzielinski-lockdown-0.9.6 rails_generators/lockdown/templates/app/views/users/new.html.erb
blaxter-lockdown-0.9.8.99 rails_generators/lockdown/templates/app/views/users/new.html.erb
blaxter-lockdown-0.9.9 rails_generators/lockdown/templates/app/views/users/new.html.erb
hone-lockdown-1.2.1 rails_generators/lockdown/templates/app/views/users/new.html.erb
hone-lockdown-1.2.2 rails_generators/lockdown/templates/app/views/users/new.html.erb
hone-lockdown-1.2.3 rails_generators/lockdown/templates/app/views/users/new.html.erb
revo-lockdown-0.9.6 rails_generators/lockdown/templates/app/views/users/new.html.erb
lockdown_vail-1.6.2.1 rails_generators/lockdown/templates/app/views/users/new.html.erb
lockdown-1.6.5 rails_generators/lockdown/templates/app/views/users/new.html.erb
revo-lockdown-1.6.2.2 rails_generators/lockdown/templates/app/views/users/new.html.erb
lockdown-1.6.4 rails_generators/lockdown/templates/app/views/users/new.html.erb
lockdown-1.6.3 rails_generators/lockdown/templates/app/views/users/new.html.erb
revo-lockdown-1.6.2.1 rails_generators/lockdown/templates/app/views/users/new.html.erb
revo-lockdown-1.6.2 rails_generators/lockdown/templates/app/views/users/new.html.erb
lockdown-1.6.2 rails_generators/lockdown/templates/app/views/users/new.html.erb
lockdown-1.6.1 rails_generators/lockdown/templates/app/views/users/new.html.erb
lockdown-1.6.0 rails_generators/lockdown/templates/app/views/users/new.html.erb
lockdown-1.5.1 rails_generators/lockdown/templates/app/views/users/new.html.erb
lockdown-1.5.0 rails_generators/lockdown/templates/app/views/users/new.html.erb
lockdown-1.3.2 rails_generators/lockdown/templates/app/views/users/new.html.erb