<%= _('Register and activate enterprise') %>
<%= error_messages_for :user %>
<% labelled_form_for :user, @user,
:html => { :help=>_('Fill all this fields to activate your enterprise and join in this environment.' +
'If you forgot your password, do not create a new account,' +
' click on the "I forgot my password!" link. ;-)')
} do |f| -%>
<%= f.text_field :login,
:help => help=_('"Username" is a simple nickname to recognize you on this environment.'),
:onchange => 'this.value = convToValidLogin( this.value )' %>
<%= help %>
<%= f.text_field :email,
:help => help=_('We\'ll send you an e-mail to validate your registration.') %>
<%= help %>
<%= f.password_field :password,
:help => help=_('Do not use a obviously password, but try some unforgettable word.') %>
<%= help %>
<%= f.password_field :password_confirmation,
:help => help=_('We need to be sure that you wrote correctly your password.') %>
<%= help %>
<%= ApplicationHelper::NoosferoFormBuilder::output_field(@question == :foundation_year ? _('What year your enterprise was founded?') : _('What is the CNPJ of your enterprise?'), text_field_tag(:answer, nil,:help => help=_('We need to be sure that this is your enterprise'))) %>
<%= hidden_field_tag :enterprise_code, params[:enterprise_code] %>
<% if @terms_of_use %>
<%= @terms_of_use %>
<%= check_box 'user', 'terms_accepted' %>
<%= _('I accept the terms of use') %>
<% end %>
<% button_bar do %>
<%= submit_button('save', _('Sign up'), :cancel => {:action => 'index'}, :class => 'icon-menu-login') %>
<% end %>
<% end -%>