.modal.modal-wide.hide.fade#start-cert-modal
  .modal-header
    %button.close{:type => :button, 'data-dismiss' => :modal, 'aria-hidden' => true} &times;
    %h3= t('homepage.start_new_certificate')
  .modal-body
    .row-fluid
      .span6.log-in
        %h1= t('homepage.log_in')
        = render 'devise/sessions/form', resource: User.new, resource_name: 'user', remote: true, form_id: 'start_cert_modal_form'
      .span6
        %h1= t('homepage.dont_have_an_account')
        %p= t('homepage.register_later_message')
        = form_tag non_authenticated_start_questionnaire_path, class: 'start-survey' do
        
          %button.btn.btn-large.btn-primary{"data-btn-confirmable" => t('homepage.creating_questionnaire')}= t('homepage.continue_without_registering')
        = link_to t('homepage.create_an_account'), new_user_registration_path, :class => 'btn btn-large btn-info btn-info-modal'
= modal_popup('start-cert-modal', '', t('homepage.start_new_certificate')) do
  .row-fluid
    .span6.log-in
      %h1= t('homepage.log_in')
      = render 'devise/sessions/form', resource: User.new, resource_name: 'user', remote: true, form_id: 'start_cert_modal_form'
    .span6
      %h1= t('homepage.dont_have_an_account')
      %p= t('homepage.register_later_message')
      = form_tag non_authenticated_start_questionnaire_path, class: 'start-survey' do

        %button.btn.btn-large.btn-primary{"data-btn-confirmable" => t('homepage.creating_questionnaire')}= t('homepage.continue_without_registering')
      = link_to t('homepage.create_an_account'), new_user_registration_path, :class => 'btn btn-large btn-info btn-info-modal'

Convert start questionnaire modal to use helper
Convert start questionnaire modal to use helper