<%= form_for @user, as: "user", url:{action: @user.new_record? ? :create : :update, id: @user.id}, html:{class: 'validate-user form-horizontal cama_ajax_request', id: "user_form"} do |f| %>
<% if @user.new_record? %>
<% end %>
<% if !@user.new_record? %>
<% end %>
<%= render partial: "camaleon_cms/admin/settings/custom_fields/render", locals: {record: @user, field_groups: @user.get_user_field_groups(current_site) } %>
<%= r = { html: ''}; hooks_run('user_update_more_actions_form', r); raw(r[:html]); %>
<% end %>
<%= r = { html: ''}; hooks_run('user_update_more_actions', r); raw(r[:html]); %>
<%= render partial: 'layouts/camaleon_cms/admin/form_error', locals: {data: @user} %>
<%= @user.fullname if !@user.new_record? %>
<%= @user.new_record? ? "" : @user.get_meta("slogan") %>
" class="img-thumbnail input_upload"/>
<%= f.text_field :id, :class => "form-control required", disabled: "disabled" %>
<%= f.text_field :username, :class => "form-control required" %>
<%= f.email_field :email, :class => "form-control required email"%>
<%= f.password_field :password, :class => "form-control required" %>
<%= f.label "#{t('camaleon_cms.admin.table.role')}", class: "col-md-4 col-xs-6 control-label" %>
<%= f.select :role,current_site.user_roles.reorder(:name).all.map{|role| [role.name, role.slug]}, {}, {:class => "form-control required"}%>
" class="form-control required"/>
" class="form-control required"/>
<%= t('camaleon_cms.admin.table.quick_info')%>
<%= t('camaleon_cms.admin.message.quick_info')%>
<%= @user.last_login_at %>
<%= @user.created_at %>