2015-11-27 17:25:22 +01:00
|
|
|
%h2.text-info
|
|
|
|
=@procedure.libelle
|
|
|
|
%br
|
|
|
|
|
2015-11-16 16:16:08 +01:00
|
|
|
%ul.nav.nav-tabs
|
|
|
|
%li.active
|
2015-12-04 16:17:35 +01:00
|
|
|
= link_to('Informations', admin_procedure_path(@procedure))
|
|
|
|
%li
|
|
|
|
= link_to('Description', edit_admin_procedure_path(@procedure))
|
2015-11-16 16:16:08 +01:00
|
|
|
%li
|
2015-11-17 10:23:05 +01:00
|
|
|
= link_to('Champs', admin_procedure_types_de_champ_path(@procedure))
|
2015-11-16 16:16:08 +01:00
|
|
|
%li
|
2015-11-20 13:54:08 +01:00
|
|
|
= link_to('Pièces justificatives', admin_procedure_pieces_justificatives_path(@procedure))
|
2015-11-26 18:41:41 +01:00
|
|
|
%li{style:'float:right'}
|
2015-11-27 17:13:06 +01:00
|
|
|
= form_tag admin_procedure_archive_path(procedure_id: @procedure.id, archive: !@procedure.archived?), method: :put do
|
2015-11-26 18:41:41 +01:00
|
|
|
%button#archive.btn.btn-nav.text-info{type: :button}
|
|
|
|
%i.fa.fa-eraser
|
2015-11-27 17:13:06 +01:00
|
|
|
- if @procedure.archived
|
2015-11-27 17:25:22 +01:00
|
|
|
= 'Réactiver'
|
2015-11-27 17:13:06 +01:00
|
|
|
- else
|
|
|
|
= 'Archiver'
|
2015-11-26 18:41:41 +01:00
|
|
|
#confirm
|
|
|
|
%button#valid.btn.btn-nav.text-success{type: :submit}
|
|
|
|
%i.fa.fa-check
|
|
|
|
Valider
|
|
|
|
%button#cancel.btn.btn-nav.text-danger{type: :button}
|
|
|
|
%i.fa.fa-remove
|
|
|
|
Annuler
|
2015-11-16 16:16:08 +01:00
|
|
|
|
2015-12-04 16:17:35 +01:00
|
|
|
|
2015-10-27 17:31:08 +01:00
|
|
|
%br
|
2015-12-04 16:17:35 +01:00
|
|
|
%div
|
|
|
|
|
|
|
|
%h3 Lien procédure
|
|
|
|
%div{style:'margin-left:3%'}
|
|
|
|
= @procedure.lien
|
|
|
|
|
2015-12-03 15:38:17 +01:00
|
|
|
%br
|
2015-12-04 16:17:35 +01:00
|
|
|
%h3 Dossiers
|
|
|
|
|
|
|
|
.row
|
|
|
|
.col-md-6.col-lg-6{style:'margin-left:3%'}
|
|
|
|
%h4 Total
|
|
|
|
%div
|
|
|
|
= @facade.dossiers_total
|
|
|
|
|
|
|
|
%h4.text-danger Attente Gestionnaire
|
|
|
|
%div
|
|
|
|
= @facade.dossiers_waiting_gestionnaire_total
|
|
|
|
|
|
|
|
%h4.text-info Attente User
|
|
|
|
%div
|
|
|
|
= @facade.dossiers_waiting_user_total
|
|
|
|
|
|
|
|
%h4.text-success Terminé
|
|
|
|
%div
|
|
|
|
= @facade.dossiers_termine_total
|
|
|
|
|
|
|
|
%h4 Archivé
|
|
|
|
|
|
|
|
- unless @facade.dossiers_archived_total == 0
|
|
|
|
%ul
|
|
|
|
- @facade.dossiers_archived_by_state_total.each do |dossier|
|
|
|
|
%li
|
|
|
|
= dossier.state_fr
|
|
|
|
\:
|
|
|
|
= dossier.total
|
|
|
|
- else
|
|
|
|
%p
|
|
|
|
0
|
|
|
|
|
|
|
|
.col-md-5.col-lg-5
|
|
|
|
%h4 Non archivés
|
|
|
|
= javascript_include_tag "https://code.highcharts.com/highcharts.js", "chartkick"
|
|
|
|
- if @facade.dossiers_for_pie_highchart.blank?
|
|
|
|
Aucune statistique pour le moment
|
|
|
|
-else
|
|
|
|
=pie_chart @facade.dossiers_for_pie_highchart
|