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

29 lines
1,020 B
Text
Raw Normal View History

%div.row#recap_dossier
%div.col-md-2.col-lg-2
%h2
='Récapitulatif'
2015-08-10 11:05:06 +02:00
%div.col-md-8.col-lg-8
2015-08-10 11:05:06 +02:00
%div.col-md-2.col-lg-2
%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: :submit, 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_validate, 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'