<% content_for(:title, t("camaleon_cms.admin.users.create_user")) %>
<%= render "camaleon_cms/flash_messages" %>

<%= raw t('camaleon_cms.admin.login.msg_registration_html') %>

<%= form_for(@user, as: "user", :url => cama_admin_register_path, :html => { method: "post", role: "form", id:"login_user", class: "form-horizontal" } ) do |f| %> <%= render partial: 'layouts/camaleon_cms/admin/form_error', locals: {data: @user} %>

<%= t('camaleon_cms.admin.login.personal_info') %>

<%= f.text_field :first_name, class: 'form-control required', placeholder: t("camaleon_cms.admin.login.first_name", default: 'First Name') %>
<%= f.text_field :last_name, class: 'form-control', placeholder: t("camaleon_cms.admin.login.last_name", default: 'Last Name') %>
<%= f.email_field :email, :class => "form-control required email", placeholder: t("camaleon_cms.admin.login.email", default: 'Email') %>

<%= t('camaleon_cms.admin.login.authentication') %>

<%= f.text_field :username, :class => "form-control required", placeholder: t("camaleon_cms.admin.login.username", default: 'User Name') %>
<%= f.password_field :password, :class => "form-control #{"required" if @user.new_record?}", placeholder: t("camaleon_cms.admin.login.password", default: 'Password') %>
<%= f.password_field :password_confirmation, :class => "form-control #{"required" if @user.new_record?}", "equalTo" => "#user_password", placeholder: t("camaleon_cms.admin.login.password_confirm", default: 'Password Confirmation') %>
<% if current_site.security_user_register_captcha_enabled? %>

<%= t('camaleon_cms.admin.login.captcha', default: 'Security Code') %>

<%= raw cama_captcha_tag(5, {}, {class: 'form-control required', placeholder: t('camaleon_cms.admin.login.captcha', default: 'Security Code')}) %>
<% end %> <%= r = {html: "", f: f}; hooks_run("user_register_form", r); raw(r[:html]); %>
<% end %>