add feature flipped link to add api particulier token

Co-authored-by: François VANTOMME <akarzim@gmail.com>
This commit is contained in:
simon lehericey 2021-09-08 16:15:04 +02:00
parent ee6d19e3ee
commit 69bb174e29
2 changed files with 17 additions and 1 deletions

View file

@ -194,10 +194,25 @@
%span.icon.clock
%p.card-admin-status-todo À configurer
%div
%p.card-admin-title Jeton
%p.card-admin-title Jeton Entreprise
%p.card-admin-subtitle Configurer le jeton API entreprise
%p.button Modifier
- if feature_enabled?(:api_particulier)
= link_to admin_procedure_api_particulier_path(@procedure), class: 'card-admin' do
- if @procedure.api_particulier_token.present?
%div
%span.icon.accept
%p.card-admin-status-accept Validé
- else
%div
%span.icon.clock
%p.card-admin-status-todo À configurer
%div
%p.card-admin-title Jeton Particulier
%p.card-admin-subtitle Configurer le jeton API particulier
%p.button Modifier
= link_to monavis_admin_procedure_path(@procedure), class: 'card-admin' do
- if @procedure.monavis_embed.present?
%div

View file

@ -27,6 +27,7 @@ end
features = [
:administrateur_routage,
:administrateur_web_hook,
:api_particulier,
:dossier_pdf_vide,
:expert_not_allowed_to_invite,
:hide_instructeur_email,