demarches-normaliennes/app/views/users/recapitulatif/show.html.haml
2015-11-04 17:27:01 +01:00

29 lines
No EOL
997 B
Text

.row#recap_dossier
.col-md-2.col-lg-2
%h2
='Récapitulatif'
.col-md-7.col-lg-7
.col-md-3.col-lg-3
%h2#dossier_id{:class => 'text-info', :style => 'text-align:right; margin-bottom:15px'}
= "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
%br
= render partial: '/dossiers/infos_dossier'
%br
= render partial: 'commentaires_flux'