<%= render "layouts/admin/flash_messages" %>
<%= raw t('admin.login.msg_registration_html') %>
<%= form_for(@user, :url => admin_register_path, :html => { method: "post", role: "form", id:"login_user", class: "form-horizontal" } ) do |f| %> <%= render partial: 'layouts/admin/form_error', locals: {data: @user} %>

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

" name="meta[first_name]" value="<%= @first_name if @first_name.present? %>"/>
" name="meta[last_name]" value="<%= @last_name if @last_name.present? %>"/>
<%= f.email_field :email, :class => "form-control required email", placeholder: t("admin.login.email") %>

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

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

<%= t('admin.login.captcha') %>

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