demarches-normaliennes/app/views/new_user/dossiers/identite.html.haml

48 lines
1.7 KiB
Text
Raw Normal View History

2018-08-29 17:09:48 +02:00
- content_for(:title, "Nouveau dossier (#{@dossier.procedure.libelle})")
- content_for :footer do
2018-09-12 13:24:14 +02:00
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
.two-columns
.columns-container
.column.preview
.procedure-logos
= image_tag @dossier.procedure.decorate.logo_img
- if @dossier.procedure.euro_flag
= image_tag "flag_of_europe.svg"
%h2.procedure-title
= @dossier.procedure.libelle
.procedure-description
= h string_to_html(@dossier.procedure.description)
.column.identity-form
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: @dossier }
- if !dossier_submission_is_closed?(@dossier)
= form_for @dossier.individual, url: update_identite_dossier_path(@dossier), html: { class: "form" } do |f|
%h1 Données d'identité
%p.mb-1 Merci de remplir vos informations personnelles pour accéder à la démarche.
%label
%span.mandatory *
champs requis
= f.label :gender, class: "required"
= f.select :gender, ['M.', 'Mme'], {}, class: "small"
.flex
.inline-champ
= f.label :prenom, class: "required"
= f.text_field :prenom, class: "small", required: true
.inline-champ
= f.label :nom, class: "required"
= f.text_field :nom, class: "small", required: true
- if @dossier.procedure.ask_birthday?
= f.label :birthdate, class: "required"
= f.date_field :birthdate, value: @dossier.individual.birthdate, placeholder: 'format : AAAA-MM-JJ', required: true, class: "small"
= f.submit "Continuer", class: "button large primary expand"