:ruby privacy_link = link_to t('applicants.text.privacy_policy'), 'https://www.usertesting.com/privacy-policy-tester', target: '_blank' terms_link = link_to t('applicants.text.terms_of_use'), 'https://www.usertesting.com/terms-of-use-tester', target: '_blank' %fieldset.topper = render partial: "sign_up_navigation", locals: { step: "1" } .row-fluid .offset2.span8 - if @applicant.errors.any? - if @applicant.errors.added? :email, :taken #welcome_back.well.text-info.alert-info %h4= t('applicants.welcome_back.heading', :email => @applicant.email) %p= t('applicants.welcome_back.boiler') = link_to("#{t('applicants.welcome_back.resend_the_email')} #{icon('chevron-right')}".html_safe, '#', class: 'btn btn-large btn-warning js-resend-email', data: {email: @applicant.email}) - else .well.text-error.alert-error %h4= t('applicants.text.saving_errors') %ul - @applicant.errors.each_with_index do |msg, i| %li = msg[1] - unless @applicant.errors.any? and @applicant.errors.added? :email, :taken = form_for @applicant, html: { class: 'form-horizontal submit-once' } do |f| - if @panel = f.hidden_field :panel_id = f.fields_for :applicant_panel_parameter_set do |ff| = ff.hidden_field :panel_id = ff.hidden_field :parameters .control-group = f.label :email, t('applicants.pages.new.form.labels.email'), class: 'control-label' .controls = f.email_field :email, required: true .control-group .controls = f.label :terms_of_use, class: "checkbox" do = f.check_box :terms_of_use, required: true = t('applicants.pages.new.form.labels.terms', terms_link: terms_link, privacy_link: privacy_link).html_safe .form-actions = f.submit t('applicants.pages.new.form.buttons.continue'), class: 'btn btn-warning btn-large'