<%= 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" %>
<% end %>
<%= 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"}%>
<% if !@user.new_record? %> <% end %>
" class="form-control required"/>
" class="form-control required"/>
<%= 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]); %>
<% add_asset_library('form_ajax', 'cropper') %> <%= javascript_include_tag "camaleon_cms/admin/user_profile" %>