Sha256: f1dc9ebaf9bbc1dac0b96888d551028a00aada32706821e2a47711d669bea045

Contents?: true

Size: 1.38 KB

Versions: 49

Compression:

Stored size: 1.38 KB

Contents

<h1>Editing 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 "Update" %> </p>
<%% end %>

<%%= link_to 'Show', <%= namespace.blank? ? "user_path(@user)" : "#{namespace}_user_path(@user)" %> %> |
<%%= 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/edit.html.erb
blaxter-lockdown-0.9.8.99 rails_generators/lockdown/templates/app/views/users/edit.html.erb
blaxter-lockdown-0.9.9 rails_generators/lockdown/templates/app/views/users/edit.html.erb
hone-lockdown-1.2.1 rails_generators/lockdown/templates/app/views/users/edit.html.erb
hone-lockdown-1.2.2 rails_generators/lockdown/templates/app/views/users/edit.html.erb
hone-lockdown-1.2.3 rails_generators/lockdown/templates/app/views/users/edit.html.erb
revo-lockdown-0.9.6 rails_generators/lockdown/templates/app/views/users/edit.html.erb
lockdown_vail-1.6.2.1 rails_generators/lockdown/templates/app/views/users/edit.html.erb
lockdown-1.6.5 rails_generators/lockdown/templates/app/views/users/edit.html.erb
revo-lockdown-1.6.2.2 rails_generators/lockdown/templates/app/views/users/edit.html.erb
lockdown-1.6.4 rails_generators/lockdown/templates/app/views/users/edit.html.erb
lockdown-1.6.3 rails_generators/lockdown/templates/app/views/users/edit.html.erb
revo-lockdown-1.6.2.1 rails_generators/lockdown/templates/app/views/users/edit.html.erb
revo-lockdown-1.6.2 rails_generators/lockdown/templates/app/views/users/edit.html.erb
lockdown-1.6.2 rails_generators/lockdown/templates/app/views/users/edit.html.erb
lockdown-1.6.1 rails_generators/lockdown/templates/app/views/users/edit.html.erb
lockdown-1.6.0 rails_generators/lockdown/templates/app/views/users/edit.html.erb
lockdown-1.5.1 rails_generators/lockdown/templates/app/views/users/edit.html.erb
lockdown-1.5.0 rails_generators/lockdown/templates/app/views/users/edit.html.erb
lockdown-1.3.2 rails_generators/lockdown/templates/app/views/users/edit.html.erb