2015-08-31 09:50:54 +02:00
|
|
|
.container#description_page
|
2015-08-18 10:43:36 +02:00
|
|
|
%h2 Description de votre projet
|
|
|
|
%br
|
2015-08-10 11:05:06 +02:00
|
|
|
|
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
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-08-18 10:43:36 +02:00
|
|
|
%div
|
|
|
|
.row
|
|
|
|
.col-md-12
|
|
|
|
%h4 Nom de votre projet *
|
|
|
|
= text_field_tag :nom_projet, @dossier.nom_projet, placeholder: 'Nom du projet', class: 'form-control'
|
|
|
|
%br
|
|
|
|
.row
|
|
|
|
.col-md-12
|
|
|
|
%h4 Description de votre projet *
|
|
|
|
= text_area_tag :description, @dossier.description, rows: '6', placeholder: 'Description du projet', class: 'form-control'
|
|
|
|
%br
|
|
|
|
.row
|
|
|
|
.col-lg-6.col-md-6
|
|
|
|
%h4 Montant du projet *
|
|
|
|
= number_field_tag :montant_projet, @dossier.montant_projet, class: 'form-control', placeholder: 'Montant du projet'
|
|
|
|
!= '€'
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-08-18 10:43:36 +02:00
|
|
|
.col-lg-6.col-md-6
|
|
|
|
%h4 Montant des aides que vous sollicitez *
|
|
|
|
= number_field_tag :montant_aide_demande, @dossier.montant_aide_demande, class: 'form-control', placeholder: 'Montant des aides'
|
2015-08-10 11:05:06 +02:00
|
|
|
!='€'
|
2015-08-18 10:43:36 +02:00
|
|
|
%br
|
|
|
|
.row
|
|
|
|
.col-lg-6.col-md-6
|
|
|
|
%h4 Date prévisionnelle du début de votre projet *
|
|
|
|
= text_field_tag :date_previsionnelle, @dossier.date_previsionnelle, placeholder: 'Date prévisionnelle', class: 'form-control', 'data-provide' => 'datepicker', 'data-date-format' => 'dd/mm/yyyy'
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-08-18 10:43:36 +02:00
|
|
|
%br
|
|
|
|
%h3 Documents administratifs
|
2015-08-11 15:39:16 +02:00
|
|
|
|
2015-08-18 10:43:36 +02:00
|
|
|
%br
|
2015-08-20 12:20:54 +02:00
|
|
|
//TODO a refactorer
|
2015-08-18 10:43:36 +02:00
|
|
|
%table{class:'table', style:'width:55%; margin-left:5%'}
|
2015-08-11 15:39:16 +02:00
|
|
|
%tr
|
|
|
|
%th{class:'col-lg-6'}
|
2015-08-18 10:43:36 +02:00
|
|
|
='Charger votre CERFA (.pdf)'
|
|
|
|
|
2015-09-21 17:59:03 +02:00
|
|
|
-if @procedure.lien_demarche != nil
|
|
|
|
%a{style:'font-size:0.9em; padding-left:3px', id: 'lien_cerfa' ,href: "#{@procedure.lien_demarche}", :target => '_blank'} Lien CERFA
|
2015-08-18 10:43:36 +02:00
|
|
|
|
2015-08-11 15:39:16 +02:00
|
|
|
%td{class:'col-lg-5'}
|
2015-08-20 12:20:54 +02:00
|
|
|
-if !@dossier.cerfa.empty?
|
2015-08-18 10:43:36 +02:00
|
|
|
%span.btn.btn-sm.btn-file.btn-success
|
2015-08-20 12:20:54 +02:00
|
|
|
Modifier
|
2015-08-18 10:43:36 +02:00
|
|
|
%input{type: 'file', name:'cerfa_pdf', id:'cerfa_pdf', accept: ".pdf"}
|
2015-08-11 15:39:16 +02:00
|
|
|
-else
|
2015-08-31 09:50:54 +02:00
|
|
|
%input{type: 'file', name:'cerfa_pdf', id:'cerfa_pdf', accept: ".pdf"}
|
2015-08-18 10:43:36 +02:00
|
|
|
|
2015-09-21 17:59:03 +02:00
|
|
|
- @dossier.pieces_justificatives.each do |piece_justificative|
|
2015-08-18 10:43:36 +02:00
|
|
|
%tr
|
2015-08-20 12:20:54 +02:00
|
|
|
%th.col-lg-6
|
2015-09-21 17:59:03 +02:00
|
|
|
= piece_justificative.libelle
|
2015-08-20 12:20:54 +02:00
|
|
|
%td.col-lg-5
|
2015-09-21 17:59:03 +02:00
|
|
|
-if piece_justificative.api_entreprise
|
|
|
|
%span.text-success{ id: "piece_justificative_#{piece_justificative.type}" } Nous l'avons récupéré pour vous.
|
2015-08-11 15:39:16 +02:00
|
|
|
-else
|
2015-09-21 17:59:03 +02:00
|
|
|
-if piece_justificative.empty?
|
|
|
|
= file_field_tag "piece_justificative_#{piece_justificative.type}", accept: '.pdf'
|
2015-08-20 12:20:54 +02:00
|
|
|
-else
|
|
|
|
%span.btn.btn-sm.btn-file.btn-success
|
|
|
|
Modifier
|
2015-09-21 17:59:03 +02:00
|
|
|
= file_field_tag "piece_justificative_#{piece_justificative.type}", accept: '.pdf'
|
2015-10-08 16:07:01 +02:00
|
|
|
|
2015-10-08 16:31:14 +02:00
|
|
|
- if (user_signed_in? && current_user.loged_in_with_france_connect) || gestionnaire_signed_in?
|
2015-10-08 16:07:01 +02:00
|
|
|
%tr
|
|
|
|
%th.col-lg-6
|
|
|
|
Attestation fiscale
|
|
|
|
%td.col-lg-6.col-md-6
|
|
|
|
%a{ href: "/attestation_fiscale_octo.pdf", target: '_blank'} Nous l'avons récupéré pour vous.
|
2015-08-18 10:43:36 +02:00
|
|
|
//END
|
2015-08-10 11:05:06 +02: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
|