2015-09-01 17:02:54 +02:00
|
|
|
= javascript_include_tag "https://code.highcharts.com/highcharts.js", "chartkick"
|
2015-09-24 10:17:59 +02:00
|
|
|
|
|
|
|
#infos_dossier
|
|
|
|
%div.row
|
|
|
|
.col-lg-6.col-md-6
|
|
|
|
%h3.text-info
|
|
|
|
= @dossier.nom_projet
|
|
|
|
|
|
|
|
%br
|
|
|
|
%div.row
|
|
|
|
.col-lg-6.col-md-6
|
|
|
|
%h4 Montant total
|
|
|
|
%p{style:'margin-left:5%'}
|
|
|
|
=number_to_currency(@dossier.montant_projet.to_f, :unit => " ", :separator => ",", :delimiter => " ")
|
|
|
|
!='€'
|
|
|
|
|
|
|
|
.col-lg-6.col-md-6
|
|
|
|
%h4 Début du projet souhaité
|
|
|
|
%p{style:'margin-left:5%'}
|
|
|
|
= @dossier.date_fr
|
|
|
|
%div.row
|
|
|
|
.col-lg-6.col-md-6
|
|
|
|
%h4 Montant souhaité
|
|
|
|
%p{style:'margin-left:5%'}
|
|
|
|
=number_to_currency(@dossier.montant_aide_demande.to_f, :unit => " ", :separator => ",", :delimiter => " ")
|
|
|
|
!='€'
|
|
|
|
%br
|
2015-08-10 11:05:06 +02:00
|
|
|
.description
|
|
|
|
- begin
|
|
|
|
- @dossier.description.split(/(?:\n\r?|\r\n?')/).each do |line|
|
|
|
|
= line
|
|
|
|
%br
|
|
|
|
- rescue
|
|
|
|
=''
|
|
|
|
|
2015-09-24 10:17:59 +02:00
|
|
|
.col-lg-6.col-md-6
|
|
|
|
=render partial: '/dossiers/pieces_justificatives'
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-09-24 10:17:59 +02:00
|
|
|
%div.row{style: 'text-align:right'}
|
2015-09-24 16:51:14 +02:00
|
|
|
-unless gestionnaire_signed_in?
|
2015-11-02 15:46:43 +01:00
|
|
|
-if !@dossier.validated? && !@dossier.submitted? && !@dossier.closed?
|
2015-09-24 16:51:14 +02:00
|
|
|
%a#maj_infos.btn.btn-info{href: "/users/dossiers/#{@dossier.id}/description?back_url=recapitulatif"}
|
|
|
|
= 'Editer mon dossier'
|
|
|
|
|
|
|
|
-unless user_signed_in?
|
2015-11-02 15:46:43 +01:00
|
|
|
-if !@dossier.validated? && !@dossier.submitted? && !@dossier.closed?
|
2015-11-02 11:45:52 +01:00
|
|
|
= form_tag(url_for({controller: 'backoffice/dossiers', action: :valid, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do
|
2015-09-24 16:51:14 +02:00
|
|
|
%button#action_button.btn.btn-success
|
|
|
|
= 'Valider le dossier'
|
2015-11-02 15:46:43 +01:00
|
|
|
-elsif @dossier.submitted?
|
2015-11-02 15:00:28 +01:00
|
|
|
= form_tag(url_for({controller: 'backoffice/dossiers', action: :close, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do
|
2015-10-09 12:05:07 +02:00
|
|
|
%button#action_button.btn.btn-success
|
|
|
|
= 'Traiter le dossier'
|
2015-09-24 16:51:14 +02:00
|
|
|
|