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

29 lines
997 B
Text
Raw Normal View History

2015-11-04 17:27:01 +01:00
.row#recap_dossier
.col-md-2.col-lg-2
%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
%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}"
- unless gestionnaire_signed_in?
-if @dossier.draft?
= form_tag(url_for({controller: :recapitulatif, action: :initiate, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do
%button#action_button.btn.btn-success
= 'Soumettre mon dossier'
-elsif @dossier.validated?
= form_tag(url_for({controller: :recapitulatif, action: :submit, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do
%button#action_button.btn.btn-success
= 'Déposer mon dossier'
-else
%h3{:class => 'text-success', :style => 'text-align:right'}
= @dossier.state_fr
2015-08-10 11:05:06 +02:00
%br
2015-08-25 16:33:55 +02:00
= render partial: '/dossiers/infos_dossier'
%br
2015-08-10 11:05:06 +02:00
= render partial: 'commentaires_flux'