2016-06-06 17:40:32 +02:00
|
|
|
.container#description_page
|
2016-08-24 12:14:25 +02:00
|
|
|
- unless @dossier.procedure.lien_notice.blank?
|
2016-12-05 19:30:58 +01:00
|
|
|
#lien_notice_panel.row{style:'width: 280px; position: fixed; background-color: white; right: 5%; top: 80px; z-index: 200'}
|
2016-08-24 12:14:25 +02:00
|
|
|
.panel.panel-info{style:'margin-bottom:0'}
|
|
|
|
.panel-body.center
|
|
|
|
.row
|
2016-12-23 16:58:06 +01:00
|
|
|
.col-md-1.col-lg-1.col-sm-1.col-xs-1
|
2016-08-24 12:14:25 +02:00
|
|
|
.fa.fa-info-circle.text-info{style:'font-size: 2em; margin-top: 20%'}
|
2017-02-14 17:08:14 +01:00
|
|
|
.col-xs-10{style:'padding-right: 0px'}
|
2016-08-24 12:14:25 +02:00
|
|
|
%b
|
|
|
|
=link_to 'Accéder au guide', @dossier.procedure.lien_notice, {target: '_blank'}
|
|
|
|
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
|
|
|
|
2016-06-06 17:40:32 +02:00
|
|
|
-#TODO use form_for
|
2017-03-06 14:29:01 +01:00
|
|
|
= form_tag(url_for({controller: 'users/description', action: :update, dossier_id: @dossier.id}), class: 'form', method: 'POST', multipart: true) do
|
2016-12-22 11:39:44 +01:00
|
|
|
-unless @champs.nil?
|
|
|
|
#liste_champs
|
2016-12-07 15:44:28 +01:00
|
|
|
=render partial: 'users/description/champs', locals:{private: false}
|
2016-06-06 17:40:32 +02:00
|
|
|
|
|
|
|
-if !@procedure.lien_demarche.blank? || @procedure.cerfa_flag || @dossier.types_de_piece_justificative.size > 0
|
|
|
|
%br
|
|
|
|
%h3 Documents administratifs
|
|
|
|
|
2017-01-18 17:13:54 +01:00
|
|
|
|
2016-06-06 17:40:32 +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-02-13 15:46:28 +01:00
|
|
|
#state_description.row{style:'width: 50%; margin-left:20px'}
|
|
|
|
.panel.panel-info
|
|
|
|
.panel-body.center
|
|
|
|
.row
|
|
|
|
.col-md-1.col-lg-1.col-sm-1.col-xs-1
|
|
|
|
.fa.fa-info-circle.text-info{style:'font-size: 2em; margin-top: 20%'}
|
2017-02-14 17:08:14 +01:00
|
|
|
.col-xs-11
|
2017-02-13 15:46:28 +01:00
|
|
|
Les documents administratifs ne sont pas indispensables afin d'initier votre dossier.
|
|
|
|
Vous pourrez dans tous les cas les compléter plus tard si vous ne les possédez pas de suite.
|
2016-08-26 09:17:31 +02:00
|
|
|
|
|
|
|
|
2017-03-06 14:29:01 +01:00
|
|
|
-route = Rails.application.routes.recognize_path(request.referrer) # WTF ?
|
2016-12-19 19:07:57 +01:00
|
|
|
- unless route[:controller].match('admin')
|
2016-06-06 17:40:32 +02:00
|
|
|
%div{style: 'text-align:right'}
|
|
|
|
%h6 Tous les champs portant un * sont obligatoires.
|
|
|
|
|
2017-03-06 14:29:01 +01:00
|
|
|
- if @procedure.archived?
|
|
|
|
.alert.alert-danger
|
|
|
|
= t('errors.messages.procedure_archived')
|
|
|
|
- else
|
|
|
|
- if !@dossier.draft?
|
|
|
|
= render partial: '/layouts/modifications_terminees'
|
|
|
|
- else
|
|
|
|
= submit_tag 'Soumettre mon dossier', id: 'suivant', name: 'submit[nouveaux]', class: 'btn btn btn-success', style: 'float:right', disabled: @procedure.archived?, 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.archived?, data: {disable_with: 'Enregistrer un brouillon', submit: true}
|