2021-11-25 16:26:55 +01:00
|
|
|
|
= render partial: 'administrateurs/breadcrumbs',
|
2022-12-08 17:28:48 +01:00
|
|
|
|
locals: { steps: [['Démarches', admin_procedures_back_path(@procedure)],
|
2022-09-09 13:08:24 +02:00
|
|
|
|
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
2024-05-27 11:13:21 +02:00
|
|
|
|
['Jeton Entreprise']] }
|
2020-04-27 14:58:12 +02:00
|
|
|
|
|
2024-05-27 11:13:21 +02:00
|
|
|
|
.fr-container
|
|
|
|
|
%h1.fr-h2 Jeton Entreprise
|
2020-04-27 14:58:12 +02:00
|
|
|
|
|
2024-05-27 11:13:21 +02:00
|
|
|
|
= form_with model: @procedure, url: url_for({ controller: 'administrateurs/procedures', action: :update_jeton }) do |f|
|
|
|
|
|
.fr-container
|
2023-11-15 17:58:26 +01:00
|
|
|
|
= render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-mb-2w') do |c|
|
2024-01-08 11:22:38 +01:00
|
|
|
|
- c.with_body do
|
2023-11-15 17:58:26 +01:00
|
|
|
|
%p
|
|
|
|
|
Démarches Simplifiées utilise
|
|
|
|
|
= link_to 'API Entreprise', "https://entreprise.api.gouv.fr/"
|
|
|
|
|
qui permet de récupérer les informations administratives des entreprises et des associations.
|
|
|
|
|
Si votre démarche nécessite des autorisations spécifiques que Démarches Simplifiées n’a pas par défaut, merci de renseigner ici le jeton
|
|
|
|
|
= link_to 'API Entreprise', "https://api.gouv.fr/les-api/api-entreprise/demande-acces"
|
|
|
|
|
propre à votre démarche.
|
2020-04-27 14:58:12 +02:00
|
|
|
|
|
2024-09-24 16:26:36 +02:00
|
|
|
|
= render partial: 'administrateurs/procedures/api_entreprise_token_expiration_alert', locals: { procedure: @procedure }
|
|
|
|
|
|
2023-07-31 23:42:01 +02:00
|
|
|
|
.fr-input-group
|
|
|
|
|
= f.label :api_entreprise_token, "Jeton", class: 'fr-label'
|
|
|
|
|
= f.password_field :api_entreprise_token, value: @procedure.read_attribute(:api_entreprise_token), class: 'fr-input'
|
2024-05-27 11:13:21 +02:00
|
|
|
|
|
2024-05-27 17:56:05 +02:00
|
|
|
|
= render Procedure::FixedFooterComponent.new(procedure: @procedure, form: f)
|