demarches-normaliennes/app/views/users/description/show.html.haml

48 lines
1.6 KiB
Text
Raw Normal View History

2015-08-31 09:50:54 +02:00
.container#description_page
%h2
= @dossier.procedure.libelle
%h3 Votre dossier
2015-08-18 10:43:36 +02:00
%br
2015-08-10 11:05:06 +02: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
%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
%h4 Description *
= text_area_tag :description, @dossier.description, rows: '6', placeholder: 'Description du projet', class: 'form-control wysihtml5'
#liste_champs
-unless @champs.nil?
2016-06-06 16:32:59 +02:00
=render partial: 'champs'
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
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
//TODO a refactorer
= 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
-if !@dossier.draft?
2015-08-18 10:43:36 +02:00
=render partial: '/layouts/modifications_terminees'
-else
= 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