[#10799] Modifications after Marlene's comments
This commit is contained in:
parent
687617cb08
commit
6b326b634e
13 changed files with 26 additions and 23 deletions
|
@ -30,7 +30,7 @@
|
|||
.flex.fr-mt-1w
|
||||
|
||||
- if @procedure.api_entreprise_token_expired_or_expires_soon?
|
||||
%span.fr-badge.fr-badge--warning.fr-mr-1w
|
||||
%span.fr-badge.fr-badge--error.fr-mr-1w
|
||||
= t('to_modify', scope: [:layouts, :breadcrumb])
|
||||
|
||||
%span.fr-badge.fr-badge--success.fr-mr-1w
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
- elsif procedure.publiee?
|
||||
- if procedure.api_entreprise_token_expired_or_expires_soon?
|
||||
%span.fr-badge.fr-badge--sm.fr-badge--warning
|
||||
%span.fr-badge.fr-badge--sm.fr-badge--error
|
||||
= t('to_modify', scope: [:layouts, :breadcrumb])
|
||||
%span.fr-badge.fr-badge--sm.fr-badge--success
|
||||
= t('published', scope: [:layouts, :breadcrumb])
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_back_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Jeton Entreprise']] }
|
||||
['Jeton API Entreprise']] }
|
||||
|
||||
.fr-container
|
||||
%h1.fr-h2 Jeton Entreprise
|
||||
%h1.fr-h2 Jeton API Entreprise
|
||||
|
||||
= form_with model: @procedure, url: url_for({ controller: 'administrateurs/procedures', action: :update_jeton }) do |f|
|
||||
.fr-container
|
||||
|
@ -14,14 +14,16 @@
|
|||
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"
|
||||
Si votre démarche nécessite des autorisations spécifiques que Démarches Simplifiées n’a pas par défaut, merci de renseigner ci dessous
|
||||
%strong le jeton API Entreprise
|
||||
propre à votre démarche.
|
||||
%p
|
||||
Si besoin, vous pouvez demander une habilitation API Entreprise sur le site
|
||||
= link_to 'api.gouv.fr.', "https://api.gouv.fr/les-api/api-entreprise/demande-acces"
|
||||
|
||||
|
||||
= render partial: 'administrateurs/procedures/api_entreprise_token_expiration_alert', locals: { procedure: @procedure }
|
||||
|
||||
.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'
|
||||
= render Dsfr::InputComponent.new(form: f, attribute: :api_entreprise_token, input_type: :password_field, required: false, opts: { value: @procedure.read_attribute(:api_entreprise_token)})
|
||||
|
||||
= render Procedure::FixedFooterComponent.new(procedure: @procedure, form: f)
|
||||
|
|
|
@ -27,6 +27,14 @@
|
|||
= link_to 'Clore', admin_procedure_close_path(procedure_id: @procedure.id), class: 'fr-btn fr-btn--tertiary fr-btn--icon-left fr-icon-calendar-close-fill', id: "close-procedure-link"
|
||||
|
||||
.fr-container
|
||||
- if @procedure.api_entreprise_token_expired_or_expires_soon?
|
||||
= render Dsfr::AlertComponent.new(state: :error, title: t(:technical_issues, scope: [:administrateurs, :procedures]), extra_class_names: 'fr-mb-2w') do |c|
|
||||
- c.with_body do
|
||||
%ul.fr-mb-0
|
||||
%li
|
||||
= link_to "Jeton API Entreprise", jeton_admin_procedure_path(@procedure), class: 'error-anchor'
|
||||
est expiré ou va expirer prochainement
|
||||
|
||||
- if @procedure.draft_changed?
|
||||
= render Dsfr::CalloutComponent.new(title: t(:has_changes, scope: [:administrateurs, :revision_changes]), icon: "fr-fi-information-line") do |c|
|
||||
- c.with_body do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue