<%= f.label 'gender' %> |
<%= f.select 'gender', options_for_select(@user_genders, @user.gender), {:prompt => _t('Please choose')}, :class => 'alchemy_selectbox long', :autofocus => true -%> |
<%= f.label 'firstname' %> |
<%= f.text_field 'firstname', :class => 'thin_border long' %> |
<%= f.label 'lastname' %> |
<%= f.text_field 'lastname', :class => 'thin_border long' %> |
<%= f.label 'login' %> |
<%= f.text_field 'login', :class => 'thin_border long', :required => true, :autofocus => true %> |
<%= f.label 'email' %> |
<%= f.email_field 'email', :class => 'thin_border long', :required => true %> |
<%= f.label 'language' %> |
<%= f.select 'language', translations_for_select, {}, {:class => 'alchemy_selectbox long'} %> |
<%= f.label 'password' %> |
<%= f.password_field 'password', :class => 'thin_border long', :autocomplete => "off", :required => action_name == 'signup' %> |
<%= f.label 'password_confirmation' %> |
<%= f.password_field 'password_confirmation', :class => 'thin_border long', :autocomplete => "off", :required => action_name == 'signup' %> |
<% if @signup %>
<%= f.hidden_field :roles %>
<% elsif permitted_to? :update_roles %>
<%= f.label 'roles' %> |
<% Alchemy::User::ROLES.each do |role| %>
<% end %>
|
<% end %>
<% unless @signup %>
<%= f.label :tag_list %> |
<%= render 'alchemy/admin/partials/autocomplete_tag_list', :f => f, :object => @user %>
|
<% end %>
|
<%= f.check_box(:send_credentials, checked: @user.new_record?) %>
<%= f.label(:send_credentials) %>
|
<%= f.button _t(:save), :class => 'button' %>
|