2015-08-31 09:50:54 +02:00
|
|
|
.container#description_page
|
2016-03-02 15:21:45 +01:00
|
|
|
%h2
|
|
|
|
= @dossier.procedure.libelle
|
|
|
|
%h3 Votre dossier
|
|
|
|
|
2015-08-18 10:43:36 +02:00
|
|
|
%br
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-11-04 11:14:07 +01:00
|
|
|
-#TODO use form_for
|
2015-08-18 10:43:36 +02:00
|
|
|
= form_tag(url_for({controller: :description, action: :create, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST', multipart: true) do
|
|
|
|
%div
|
|
|
|
.row
|
|
|
|
.col-md-12
|
2016-03-02 15:21:45 +01:00
|
|
|
%h4 Libellé pour votre dossier *
|
2015-08-18 10:43:36 +02:00
|
|
|
= text_field_tag :nom_projet, @dossier.nom_projet, placeholder: 'Nom du projet', class: 'form-control'
|
|
|
|
%br
|
|
|
|
.row
|
|
|
|
.col-md-12
|
2016-03-02 15:21:45 +01:00
|
|
|
%h4 Description *
|
2016-02-18 11:56:54 +01:00
|
|
|
= text_area_tag :description, @dossier.description, rows: '6', placeholder: 'Description du projet', class: 'form-control wysihtml5'
|
2015-11-03 15:27:49 +01:00
|
|
|
|
2015-11-04 11:14:07 +01:00
|
|
|
#liste_champs
|
2015-11-03 16:52:58 +01:00
|
|
|
-unless @champs.nil?
|
2016-06-06 16:32:59 +02:00
|
|
|
=render partial: 'champs'
|
2015-11-03 15:27:49 +01:00
|
|
|
|
2016-02-08 19:52:07 +01:00
|
|
|
-if !@procedure.lien_demarche.blank? || @procedure.cerfa_flag || @dossier.pieces_justificatives.size > 1
|
|
|
|
%br
|
|
|
|
%h3 Documents administratifs
|
2015-08-11 15:39:16 +02:00
|
|
|
|
2016-02-08 19:52:07 +01:00
|
|
|
-unless @procedure.lien_demarche.blank?
|
2016-01-08 14:58:22 +01:00
|
|
|
%p
|
|
|
|
Formulaire / documentation de la démarche :
|
|
|
|
%a{style:'font-size:0.9em; padding-left:3px', id: 'lien_cerfa' ,href: "#{@procedure.lien_demarche}", :target => '_blank'} Accéder
|
|
|
|
|
|
|
|
|
2015-08-18 10:43:36 +02:00
|
|
|
%br
|
2015-08-20 12:20:54 +02:00
|
|
|
//TODO a refactorer
|
2016-03-22 17:36:36 +01:00
|
|
|
= render partial: 'pieces_justificatives'
|
2016-02-08 19:52:07 +01:00
|
|
|
|
2015-08-18 10:43:36 +02:00
|
|
|
%div{style: 'text-align:right'}
|
|
|
|
%h6 Tous les champs portant un * sont obligatoires.
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-09-28 10:32:41 +02:00
|
|
|
-if !@dossier.draft?
|
2015-08-18 10:43:36 +02:00
|
|
|
=render partial: '/layouts/modifications_terminees'
|
|
|
|
-else
|
2015-09-28 10:32:41 +02:00
|
|
|
= submit_tag 'Soumettre mon dossier', id: 'suivant', class: %w(btn btn btn-success), style: 'float:right', data: { disable_with: 'Soumettre votre dossier', submit: true}
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-08-18 10:43:36 +02:00
|
|
|
%br
|
|
|
|
%br
|