diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index df168b7c1..9b58e571d 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -250,7 +250,11 @@ class ApplicationController < ActionController::Base
email: current_administrateur&.email,
DS_SIGN_IN_COUNT: current_administrateur&.sign_in_count,
DS_CREATED_AT: current_administrateur&.created_at,
- DS_ID: current_administrateur&.id
+ DS_ID: current_administrateur&.id,
+ DS_NB_DEMARCHES_BROUILLONS: current_administrateur&.procedures&.brouillons&.count,
+ DS_NB_DEMARCHES_ACTIVES: current_administrateur&.procedures&.publiees&.count,
+ DS_NB_DEMARCHES_ARCHIVES: current_administrateur&.procedures&.archivees&.count
+
}
}
end
diff --git a/app/javascript/shared/track/crisp.js b/app/javascript/shared/track/crisp.js
index a016a1ab2..55819e034 100644
--- a/app/javascript/shared/track/crisp.js
+++ b/app/javascript/shared/track/crisp.js
@@ -21,6 +21,12 @@ if (enabled) {
[
['DS_ID', administrateur.email],
['DS_SIGN_IN_COUNT', administrateur.DS_SIGN_IN_COUNT],
+ [
+ 'DS_NB_DEMARCHES_BROUILLONS',
+ administrateur.DS_NB_DEMARCHES_BROUILLONS
+ ],
+ ['DS_NB_DEMARCHES_ACTIVES', administrateur.DS_NB_DEMARCHES_ACTIVES],
+ ['DS_NB_DEMARCHES_ARCHIVES', administrateur.DS_NB_DEMARCHES_ARCHIVES],
[
'URL_MANAGER',
'https://www.demarches-simplifiees.fr/manager/administrateurs/' +
@@ -29,4 +35,9 @@ if (enabled) {
]
]
]);
+ window.$crisp.push([
+ 'set',
+ 'session:event',
+ [[['PAGE_VIEW', { URL: window.location.pathname }]]]
+ ]);
}
diff --git a/app/views/admin/procedures/new.html.haml b/app/views/admin/procedures/new.html.haml
index ccfde2a2f..a61ff161f 100644
--- a/app/views/admin/procedures/new.html.haml
+++ b/app/views/admin/procedures/new.html.haml
@@ -5,5 +5,5 @@
#procedure_new.section.section-label
= form_for @procedure, url: { controller: 'admin/procedures', action: :create }, multipart: true do |f|
= render partial: 'informations', locals: { f: f }
- .text-right
- = f.button 'Valider', class: 'btn btn-info', id: 'save-procedure'
+ .text-center
+ = f.button 'Valider', class: 'btn btn-info btn-lg btn-block', id: 'save-procedure'
diff --git a/app/views/layouts/_navbar.html.haml b/app/views/layouts/_navbar.html.haml
index 6d4fa787f..1bf5272eb 100644
--- a/app/views/layouts/_navbar.html.haml
+++ b/app/views/layouts/_navbar.html.haml
@@ -10,7 +10,7 @@
#navbar-body
.row
%div{ style: "vertical-align: middle;float:left;position:absolute;line-height: 60px;z-index:2;" }
- 👉 Besoin d'aide? Contactez-nous par chat, email ou prenez rendez-vous avec nous.
+ 👉Besoin d'aide? Contactez-nous par chat, email ou prenez RDV
-# BEST WTF EVER
-# this begin rescue hides potentials bugs by displaying another navbar
- begin