<%= t('camaleon_cms.admin.page_title.edit') +":"+@user.fullname if !@user.new_record? %> <%= t('camaleon_cms.admin.users.create_user') +":" if @user.new_record? %>

<%= 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| %>
<%= 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"%>
<% if @user.new_record? %>
<%= f.password_field :password, :class => "form-control required" %>
<%= f.password_field :password_confirmation, :class => "form-control required", "equalTo"=>"#user_password" %>
<% end %>
<%= f.label "#{t('camaleon_cms.admin.table.role')}", class: "control-label" %>
<%= f.select :role,current_site.user_roles.reorder(:name).decorate.map{|role| [role.the_title, role.slug]}, {}, {:class => "form-control required", disabled: !current_user.role_grantor?(@user)}%>

<% if !@user.new_record? %> <% end %>
<%= f.text_field :first_name, class: 'form-control required' %>
<%= f.text_field :last_name, class: 'form-control' %>
<%= render partial: "camaleon_cms/admin/settings/custom_fields/render", locals: {record: @user, field_groups: @user.get_user_field_groups(current_site) } %>

<%= t('camaleon_cms.admin.table.quick_info')%>

<%= t('camaleon_cms.admin.message.quick_info')%>

<%= @user.last_login_at %>
<%= @user.created_at %>
<%= 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]); %>