2021-11-25 16:26:55 +01:00
|
|
|
= render partial: 'administrateurs/breadcrumbs',
|
2022-08-17 13:53:07 +02:00
|
|
|
locals: { steps: [['Démarches', admin_procedures_path],
|
2022-09-09 13:08:24 +02:00
|
|
|
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
2022-08-17 13:53:07 +02:00
|
|
|
[Procedure.human_attribute_name(:jeton_api_particulier)]] }
|
2021-09-15 11:10:28 +02:00
|
|
|
|
|
|
|
.container
|
|
|
|
.flex
|
2021-09-28 15:11:15 +02:00
|
|
|
= link_to admin_procedure_api_particulier_jeton_path, class: 'card-admin', id: 'add-jeton' do
|
2021-09-15 11:10:28 +02:00
|
|
|
- if @procedure.api_particulier_token.blank?
|
|
|
|
%div
|
|
|
|
%span.icon.clock
|
2021-09-09 19:48:34 +02:00
|
|
|
%p.card-admin-status-todo= t('.needs_configuration')
|
2021-09-15 11:10:28 +02:00
|
|
|
- else
|
|
|
|
%div
|
|
|
|
%span.icon.accept
|
2021-09-09 19:48:34 +02:00
|
|
|
%p.card-admin-status-accept= t('.already_configured')
|
2021-09-15 11:10:28 +02:00
|
|
|
%div
|
|
|
|
%p.card-admin-title
|
2021-09-09 19:48:34 +02:00
|
|
|
= Procedure.human_attribute_name(:jeton_api_particulier)
|
|
|
|
%p.button= t('views.shared.actions.edit')
|
2021-09-13 16:09:58 +02:00
|
|
|
|
|
|
|
- if @procedure.api_particulier_scopes.present?
|
|
|
|
= link_to admin_procedure_api_particulier_sources_path, class: 'card-admin' do
|
|
|
|
- if @procedure.api_particulier_token.blank?
|
|
|
|
%div
|
|
|
|
%span.icon.clock
|
|
|
|
%p.card-admin-status-todo= t('.needs_configuration')
|
|
|
|
- else
|
|
|
|
%div
|
|
|
|
%span.icon.accept
|
|
|
|
%p.card-admin-status-accept= t('.already_configured')
|
|
|
|
%div
|
2021-11-25 16:26:55 +01:00
|
|
|
%p.card-admin-title= t('administrateurs.sources_particulier.show.data_sources')
|
2021-09-13 16:09:58 +02:00
|
|
|
%p.button= t('views.shared.actions.edit')
|