cirandas.net

ref: master

plugins/responsive/views/account/_signup_form.html.erb


<% unless theme_responsive? %>
  <%= render file: "#{Rails.root}/app/#{__FILE__[__FILE__.index('views/')..-1]}" %>
<% else %>

<%= javascript_include_tag "plugins/responsive/javascripts/signup_form_v3" %>
<%= javascript_include_tag "/plugins/responsive/javascripts/sign_up_password_rate_v3" %>


<% if @block_bot %>
  
<%=_('Are you a robot?')%>
<%=_('Please, prove that you are human by filling the captcha.')%>
<% end %> <% @profile_data = @person %> <%= error_messages_for :user, :person, :header_message => _('The account could not be created') %> <%= labelled_form_for :user, :html => { :multipart => true, :id => 'signup-form', :honeypot => true }, :horizontal => true do |f| %> <%= hidden_field_tag :invitation_code, @invitation_code %>
<%= label(:user, :login, _('Username'), {:class => 'control-label col-sm-6 col-md-6 col-lg-6'}) %>
<%= environment.default_hostname %>/ <%= text_field(:user, :login, :id => 'user_login_v3', :onchange => 'this.value = convToValidUsername(this.value);', :class => 'form-control', :'data-toggle' => "tooltip", :'data-placement' => "right", :'data-trigger' => 'focus', :title => _('Choose your login name carefully! It will be your network access and you will not be able to change it later.') ) %>

<%= _('Checking availability of login name...') %>

<%= label(:user, :password, _('Password'), {:class => 'control-label col-sm-6 col-md-6 col-lg-6'}) %>
<%= password_field(:user,:password, :id => 'user_pw_v3', :class => 'form-control', :'data-toggle' => "tooltip", :'data-placement' => "right", :'data-trigger' => 'focus', :title => _('Choose a password that you can remember easily. It must have at least 4 characters.')) %>

<%= label(:user, :password_confirmation, _('Password confirmation'), {:class => 'control-label col-sm-6 col-md-6 col-lg-6'}) %>
<%= password_field(:user, :password_confirmation, :id => 'user_pw_confirm', :class => 'form-control', :'data-toggle' => "tooltip", :'data-placement' => "right", :'data-trigger' => 'focus', :title => _('We need to be sure that you filled in your password correctly. Confirm you password.')) %>

<%= label(:user, :email, _('e-Mail'), {:class => 'control-label col-sm-6 col-md-6 col-lg-6'}) %>
<%= text_field(:user, :email, :id => 'user_email', :class => 'form-control', :'data-toggle' => "tooltip", :'data-placement' => "right", :'data-trigger' => 'focus', :title => _('This e-mail address will be used to contact you.')) %>

<%= label(:profile_data, :name, _('Full name'), {:class => 'control-label col-sm-6 col-md-6 col-lg-6'}) %>
<%= text_field(:profile_data, :name, :class => 'form-control', :'data-toggle' => "tooltip", :'data-placement' => "right", :'data-trigger' => 'focus', :title => _('Tell us your name, it will be used to identify yourself.')) %>
<%= labelled_fields_for :profile_data, @person do |f| %> <%= render :partial => 'profile_editor/person_form', :locals => {:f => f} %> <% end %> <%= @plugins.dispatch(:signup_extra_contents).collect { |content| instance_eval(&content) }.join("") %> <%= template_options(:people, 'profile_data') %> <% unless @terms_of_use.blank? %>
<%= labelled_check_box(_('I accept the %s').html_safe % link_to(_('terms of use'), {:controller => 'home', :action => 'terms'}, :target => '_blank'), 'user[terms_accepted]') %>
<% end %> <% if params[:enterprise_code] %> <%= hidden_field_tag :enterprise_code, params[:enterprise_code] %> <%= hidden_field_tag :answer, params[:answer] %> <%= hidden_field_tag :terms_accepted, params[:terms_accepted] %> <%= hidden_field_tag :new_user, true %> <% end %>
<%= recaptcha_tags :ajax => true, :display => {:theme => 'clean'} if @block_bot %>

<%= submit_button('save', _('Create my account')) %>

<% end -%> <% end %>