Etape2 individual: procedure with individual uses the new system

This commit is contained in:
simon lehericey 2018-04-03 18:25:42 +02:00
parent eacb9d1c62
commit 9749365cc7
2 changed files with 1 additions and 51 deletions

View file

@ -1,4 +1 @@
- if @facade.procedure.for_individual?
= render partial: 'dossiers/etapes/etape_2/individual'
- else
= render partial: 'dossiers/etapes/etape_2/entreprise'
= render partial: 'dossiers/etapes/etape_2/entreprise'

View file

@ -1,47 +0,0 @@
.col-xs-3.center
%h3 Mes informations
%p
Les informations de bases
%br
vous concernant.
.etape.etapes-informations.col-xs-9
= form_for @facade.dossier, url: { controller: '/users/dossiers', action: :update } do |f|
.row
.col-xs-12.padding-left-30
= f.hidden_field :id
= f.fields_for :individual, @facade.individual do |ff|
.form-group
%label
%h4
Civilité
= ff.select :gender, ['M.', 'Mme']
.form-group
%label
%h4
Nom *
= ff.text_field :nom, { class: 'form-control', required: true }
.form-group
%label
%h4
Prénom *
= ff.text_field :prenom, { class: 'form-control', required: true }
- if @facade.procedure.ask_birthday?
.form-group
%label
%h4
Date de naissance *
= ff.date_field :birthdate, { value: @facade.individual.birthdate, class: 'form-control', placeholder: 'jj/mm/aaaa', required: true }
%p
%label{ style: 'font-weight: normal;' }
= f.check_box :autorisation_donnees
 J'accepte
= link_to "les CGU", CGU_URL, target: :blank
.row
.col-xs-5.col-xs-5
.col-xs-2.col-xs-2
= f.submit 'Etape suivante', class: "action", id: 'etape_suivante'
.col-xs-5.col-xs-5