2019-07-30 14:37:00 +02:00
|
|
|
|
- title = "Statistiques · #{@procedure.libelle}"
|
|
|
|
|
- content_for(:title, title)
|
|
|
|
|
|
|
|
|
|
= render partial: 'new_administrateur/breadcrumbs',
|
|
|
|
|
locals: { steps: [link_to(@procedure.libelle, procedure_path(@procedure)),
|
|
|
|
|
'Statistiques'] }
|
|
|
|
|
|
|
|
|
|
.statistiques
|
2020-02-25 09:12:58 +01:00
|
|
|
|
-# Load Chartkick lazily, by using our React lazy-loader.
|
|
|
|
|
-# (Chartkick itself doesn't use React though)
|
2020-02-20 19:01:23 +01:00
|
|
|
|
= react_component('Chartkick')
|
|
|
|
|
|
2019-07-30 14:37:00 +02:00
|
|
|
|
%h1.new-h1= title
|
|
|
|
|
.stat-cards
|
|
|
|
|
- if @usual_traitement_time.present?
|
|
|
|
|
.stat-card.big-number-card
|
|
|
|
|
%span.big-number-card-title TEMPS DE TRAITEMENT USUEL
|
|
|
|
|
%span.big-number-card-number
|
|
|
|
|
= distance_of_time_in_words(@usual_traitement_time)
|
|
|
|
|
%span.big-number-card-detail
|
|
|
|
|
90% des demandes du mois dernier ont été traitées en moins de #{distance_of_time_in_words(@usual_traitement_time)}.
|
|
|
|
|
|
|
|
|
|
.stat-cards
|
|
|
|
|
.stat-card.stat-card-half.pull-left
|
|
|
|
|
%span.stat-card-title AVANCÉE DES DOSSIERS
|
|
|
|
|
.chart-container
|
|
|
|
|
.chart
|
|
|
|
|
= area_chart @dossiers_funnel
|
|
|
|
|
|
|
|
|
|
.stat-card.stat-card-half.pull-left
|
|
|
|
|
%span.stat-card-title TAUX D’ACCEPTATION
|
|
|
|
|
.chart-container
|
|
|
|
|
.chart
|
|
|
|
|
- colors = %w(#C3D9FF #0069CC #1C7EC9) # from _colors.scss
|
|
|
|
|
= pie_chart @termines_states, colors: colors
|