2017-04-12 11:12:05 +02:00
|
|
|
.container#description-page
|
2016-08-24 12:14:25 +02:00
|
|
|
- unless @dossier.procedure.lien_notice.blank?
|
2017-04-06 19:58:11 +02:00
|
|
|
#lien_notice_panel.row{ style: 'width: 280px; position: fixed; background-color: white; right: 5%; top: 80px; z-index: 200;' }
|
|
|
|
.panel.panel-info{ style: 'margin-bottom: 0;' }
|
2016-08-24 12:14:25 +02:00
|
|
|
.panel-body.center
|
|
|
|
.row
|
2017-03-15 17:48:35 +01:00
|
|
|
.col-xs-1
|
2017-04-06 19:58:11 +02:00
|
|
|
.fa.fa-info-circle.text-info{ style: 'font-size: 2em; margin-top: 20%;' }
|
|
|
|
.col-xs-10{ style: 'padding-right: 0px;' }
|
2016-08-24 12:14:25 +02:00
|
|
|
%b
|
2017-04-06 19:10:25 +02:00
|
|
|
= link_to 'Accéder au guide', @dossier.procedure.lien_notice, { target: '_blank' }
|
2016-08-24 12:14:25 +02:00
|
|
|
pour remplir pour votre dossier
|
|
|
|
|
|
|
|
%h2.text-info
|
2016-06-06 17:40:32 +02:00
|
|
|
= @dossier.procedure.libelle
|
2016-08-24 12:14:25 +02:00
|
|
|
|
2017-04-06 15:48:27 +02:00
|
|
|
-# TODO use form_for
|
2017-04-06 19:10:25 +02:00
|
|
|
= form_tag(url_for({ controller: 'users/description', action: :update, dossier_id: @dossier.id }), class: 'form', method: 'POST', multipart: true) do
|
2017-04-06 11:38:44 +02:00
|
|
|
- unless @champs.nil?
|
2017-04-12 11:12:05 +02:00
|
|
|
#liste-champs
|
2017-04-06 17:18:03 +02:00
|
|
|
= render partial: 'users/description/champs', locals: { private: false }
|
2016-06-06 17:40:32 +02:00
|
|
|
|
2017-04-06 11:38:44 +02:00
|
|
|
- if !@procedure.lien_demarche.blank? || @procedure.cerfa_flag || @dossier.types_de_piece_justificative.size > 0
|
2016-06-06 17:40:32 +02:00
|
|
|
%br
|
2017-03-20 12:03:27 +01:00
|
|
|
%h3 Pièces jointes
|
2016-06-06 17:40:32 +02:00
|
|
|
|
2017-01-18 17:13:54 +01:00
|
|
|
|
2017-04-06 15:48:37 +02:00
|
|
|
-# TODO a refactorer
|
2017-01-31 17:58:44 +01:00
|
|
|
.row
|
|
|
|
.col-lg-8
|
|
|
|
= render partial: 'users/description/pieces_justificatives', locals: { dossier: @dossier }
|
2016-06-06 17:40:32 +02:00
|
|
|
|
2017-04-06 16:10:46 +02:00
|
|
|
-# WTF ?
|
|
|
|
- route = Rails.application.routes.recognize_path(request.referrer)
|
2016-12-19 19:07:57 +01:00
|
|
|
- unless route[:controller].match('admin')
|
2017-04-06 19:58:11 +02:00
|
|
|
%div{ style: 'text-align: right;' }
|
2016-06-06 17:40:32 +02:00
|
|
|
%h6 Tous les champs portant un * sont obligatoires.
|
|
|
|
|
2017-12-14 15:51:45 +01:00
|
|
|
- if !@dossier.can_be_en_construction?
|
2017-03-06 14:29:01 +01:00
|
|
|
.alert.alert-danger
|
|
|
|
= t('errors.messages.procedure_archived')
|
2017-12-04 16:17:15 +01:00
|
|
|
- elsif !@dossier.brouillon?
|
2017-03-06 15:03:51 +01:00
|
|
|
= render partial: '/layouts/modifications_terminees'
|
2017-03-06 14:29:01 +01:00
|
|
|
- else
|
2017-07-13 15:09:25 +02:00
|
|
|
= submit_tag 'Soumettre mon dossier', id: 'suivant', name: 'submit[nouveaux]', class: 'btn btn btn-success', style: 'float: right;', disabled: @procedure.archivee?, data: { disable_with: 'Soumettre votre dossier', submit: true }
|
|
|
|
= submit_tag 'Enregistrer un brouillon', id: 'brouillon', name: 'submit[brouillon]', class: 'btn btn-xs btn-default', style: 'float: right; margin-right: 10px; margin-top: 6px;', disabled: @procedure.archivee?, data: { disable_with: 'Enregistrer un brouillon', submit: true }
|
2017-12-18 17:51:04 +01:00
|
|
|
= submit_tag "Enregistrer et voir mes dossiers", id: 'brouillon_then_dashboard', name: 'submit[brouillon_then_dashboard]', class: 'btn btn-xs btn-default', style: 'float: right; margin-right: 10px; margin-top: 6px;', disabled: @procedure.archivee?, data: { disable_with: 'Voir mes brouillons et dossiers', submit: true }
|