<%= form_for @user, :html => { :class=>"form-horizontal main-forms", :id=>"user-forms"} do |f| %> <%= f.error_messages %>

<%=t(:sys_basic_id_form)%>

<% if current_user.is_admin? && (@user.user_name != "rulingcom" rescue false) %> <%= f.text_field :user_name, :class=>"input-medium", :id=>"account", :placeholder=>"#{t('users.user_id')}" %> <%= t("users.user_id_note")%> <% else %> <%= f.text_field :user_name, :class=>"input-medium", :id=>"account", :placeholder=>"#{t('users.user_id')}" %> <%= t("users.user_id_note")%> <% end %>
<%= f.password_field :password, :class=>"input-medium", :id=>"password", :autocomplete=>"off" %> <%= t("users.new_password_note")%>
<%= f.password_field :password_confirmation, :class=>"input-medium", :id=>"confirm_password" %>
<%= f.hidden_field :approved, value: true if current_user.is_admin? %> <%= f.hidden_field :force_reset_password, value: false %>
<% end %>