2018-03-06 15:54:18 +01:00
|
|
|
- content_for(:title, 'Statistiques')
|
2020-03-23 17:56:40 +01:00
|
|
|
- content_for :footer do
|
|
|
|
= render partial: "root/footer"
|
2018-03-06 15:54:18 +01:00
|
|
|
|
2022-06-23 11:28:31 +02:00
|
|
|
.statistiques{ 'data-controller': 'chartkick' }
|
2017-04-03 14:19:22 +02:00
|
|
|
%h1.new-h1 Statistiques
|
|
|
|
|
|
|
|
.stat-cards
|
2017-05-29 17:16:26 +02:00
|
|
|
.stat-card.stat-card-half.big-number-card.pull-left
|
2018-09-05 14:31:19 +02:00
|
|
|
%span.big-number-card-title.long-title TOTAL DÉMARCHES DÉMAT. OU EN COURS DE DÉMAT.
|
2017-05-29 17:16:26 +02:00
|
|
|
%span.big-number-card-number
|
2018-08-29 14:54:06 +02:00
|
|
|
= number_with_delimiter(@procedures_numbers[:total])
|
|
|
|
%span.big-number-card-detail
|
|
|
|
#{number_with_delimiter(@procedures_numbers[:last_30_days_count])} (#{@procedures_numbers[:evolution]} %) sur les 30 derniers jours
|
2017-05-29 17:16:26 +02:00
|
|
|
|
|
|
|
.stat-card.stat-card-half.big-number-card.pull-left
|
|
|
|
%span.big-number-card-title TOTAL DOSSIERS DÉPOSÉS
|
|
|
|
%span.big-number-card-number
|
2018-08-29 14:54:06 +02:00
|
|
|
= number_with_delimiter(@dossiers_numbers[:total])
|
|
|
|
%span.big-number-card-detail
|
|
|
|
#{number_with_delimiter(@dossiers_numbers[:last_30_days_count])} (#{@dossiers_numbers[:evolution]} %) sur les 30 derniers jours
|
2017-04-03 14:19:22 +02:00
|
|
|
|
2018-12-18 10:35:23 +01:00
|
|
|
.stat-card.stat-card-half.pull-left
|
|
|
|
%span.stat-card-title
|
2019-09-11 17:16:48 +02:00
|
|
|
Pourcentage de contact utilisateur
|
2018-12-18 10:35:23 +01:00
|
|
|
|
|
|
|
.chart-container
|
|
|
|
.chart
|
|
|
|
= line_chart @contact_percentage
|
|
|
|
|
|
|
|
.stat-card-details
|
2019-09-11 17:16:48 +02:00
|
|
|
Nombre de réponses envoyées via HelpScout
|
|
|
|
\/ nombre de dossiers déposés
|
2018-12-18 10:35:23 +01:00
|
|
|
|
2018-08-24 17:10:27 +02:00
|
|
|
.stat-card.stat-card-half.pull-left
|
|
|
|
%span.stat-card-title
|
|
|
|
Répartition des dossiers
|
|
|
|
|
|
|
|
.chart-container
|
|
|
|
.chart
|
2020-10-02 13:28:22 +02:00
|
|
|
= pie_chart @dossiers_states_for_pie,
|
2021-09-22 11:29:02 +02:00
|
|
|
colors: ["#000091", "#7F7FC8", "#9A9AFF", "#00006D"]
|
2018-08-24 17:10:27 +02:00
|
|
|
|
2017-05-26 17:29:31 +02:00
|
|
|
.stat-card.stat-card-half.pull-left
|
2017-05-29 17:47:55 +02:00
|
|
|
%ul.segmented-control.pull-right
|
2020-02-20 19:01:23 +01:00
|
|
|
%li.segmented-control-item.segmented-control-item-active{ data: { 'toggle-chart': '.monthly-procedures-chart' } }
|
2017-05-29 17:47:55 +02:00
|
|
|
Par mois
|
2020-02-20 19:01:23 +01:00
|
|
|
%li.segmented-control-item{ data: { 'toggle-chart': '.cumulative-procedures-chart' } }
|
2017-05-29 17:47:55 +02:00
|
|
|
Cumul
|
2018-09-05 14:21:48 +02:00
|
|
|
%span.stat-card-title.pull-left Démarches dématérialisées
|
2017-05-29 17:47:55 +02:00
|
|
|
.clearfix
|
2017-05-26 17:29:31 +02:00
|
|
|
|
|
|
|
.chart-container
|
2017-05-29 17:47:55 +02:00
|
|
|
.chart.monthly-procedures-chart
|
2017-06-07 14:53:10 +02:00
|
|
|
= column_chart @procedures_in_the_last_4_months
|
2017-05-29 17:47:55 +02:00
|
|
|
.chart.cumulative-procedures-chart.hidden
|
2017-06-07 14:53:10 +02:00
|
|
|
= area_chart @procedures_cumulative
|
2017-04-03 14:19:22 +02:00
|
|
|
|
2017-05-22 16:56:09 +02:00
|
|
|
.stat-card.stat-card-half.pull-left
|
2017-05-29 17:47:55 +02:00
|
|
|
%ul.segmented-control.pull-right
|
2020-02-20 19:01:23 +01:00
|
|
|
%li.segmented-control-item.segmented-control-item-active{ data: { 'toggle-chart': '.monthly-dossiers-chart' } }
|
2017-05-29 17:47:55 +02:00
|
|
|
Par mois
|
2020-02-20 19:01:23 +01:00
|
|
|
%li.segmented-control-item{ data: { 'toggle-chart': '.cumulative-dossiers-chart' } }
|
2017-05-29 17:47:55 +02:00
|
|
|
Cumul
|
|
|
|
%span.stat-card-title.pull-left Dossiers déposés
|
|
|
|
.clearfix
|
2017-03-28 15:42:48 +02:00
|
|
|
|
2017-04-03 14:19:22 +02:00
|
|
|
.chart-container
|
2017-05-29 17:47:55 +02:00
|
|
|
.chart.monthly-dossiers-chart
|
2017-06-07 14:53:10 +02:00
|
|
|
= column_chart @dossiers_in_the_last_4_months
|
2017-05-29 17:47:55 +02:00
|
|
|
.chart.cumulative-dossiers-chart.hidden
|
2017-06-07 14:53:10 +02:00
|
|
|
= area_chart @dossiers_cumulative
|
2017-04-03 14:19:22 +02:00
|
|
|
|
|
|
|
.clearfix
|
2017-05-09 17:09:35 +02:00
|
|
|
|
2020-11-05 15:09:11 +01:00
|
|
|
- if super_admin_signed_in?
|
2018-08-13 14:46:22 +02:00
|
|
|
%h2.new-h2 Téléchargement
|
|
|
|
|
|
|
|
= link_to "Télécharger les statistiques (CSV)", stats_download_path(format: :csv), class: 'button secondary'
|