2015-11-04 17:27:01 +01:00
|
|
|
.row#recap_dossier
|
|
|
|
.col-md-2.col-lg-2
|
2015-09-24 10:17:59 +02:00
|
|
|
%h2
|
|
|
|
='Récapitulatif'
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-11-04 17:27:01 +01:00
|
|
|
.col-md-7.col-lg-7
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-11-04 17:27:01 +01:00
|
|
|
.col-md-3.col-lg-3
|
2015-09-24 10:17:59 +02:00
|
|
|
%h2#dossier_id{:class => 'text-info', :style => 'text-align:right; margin-bottom:15px'}
|
2015-08-10 11:05:06 +02:00
|
|
|
= "Dossier n°#{@dossier.id}"
|
2015-09-24 16:51:14 +02:00
|
|
|
|
2015-09-24 10:17:59 +02:00
|
|
|
- unless gestionnaire_signed_in?
|
2015-09-24 16:51:14 +02:00
|
|
|
-if @dossier.draft?
|
2015-11-02 15:31:15 +01:00
|
|
|
= form_tag(url_for({controller: :recapitulatif, action: :initiate, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do
|
2015-09-24 16:51:14 +02:00
|
|
|
%button#action_button.btn.btn-success
|
|
|
|
= 'Soumettre mon dossier'
|
2015-11-02 11:45:52 +01:00
|
|
|
-elsif @dossier.validated?
|
2015-11-02 15:46:43 +01:00
|
|
|
= form_tag(url_for({controller: :recapitulatif, action: :submit, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do
|
2015-09-24 16:51:14 +02:00
|
|
|
%button#action_button.btn.btn-success
|
|
|
|
= 'Déposer mon dossier'
|
|
|
|
-else
|
|
|
|
%h3{:class => 'text-success', :style => 'text-align:right'}
|
|
|
|
= @dossier.state_fr
|
2015-09-24 10:17:59 +02:00
|
|
|
|
2015-08-10 11:05:06 +02:00
|
|
|
%br
|
2015-08-25 16:33:55 +02:00
|
|
|
|
2015-09-24 10:17:59 +02:00
|
|
|
= render partial: '/dossiers/infos_dossier'
|
|
|
|
%br
|
2015-08-10 11:05:06 +02:00
|
|
|
= render partial: 'commentaires_flux'
|