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), admin_procedure_api_particulier_path(@procedure)],
|
|
|
|
['Jeton']] }
|
2021-09-15 10:53:09 +02:00
|
|
|
|
|
|
|
.container
|
|
|
|
%h1.page-title
|
2021-09-09 19:48:34 +02:00
|
|
|
= t('.configure_token')
|
2021-09-15 10:53:09 +02:00
|
|
|
|
|
|
|
.container
|
|
|
|
%h1
|
|
|
|
= form_with model: @procedure, url: admin_procedure_api_particulier_jeton_path, local: true, html: { class: 'form' } do |f|
|
2023-11-15 17:58:26 +01:00
|
|
|
= render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-mb-2w') do |c|
|
|
|
|
- c.body do
|
|
|
|
%p
|
|
|
|
= t('.api_particulier_description_html', app_name: APPLICATION_NAME)
|
2021-09-15 10:53:09 +02:00
|
|
|
|
2021-09-09 19:48:34 +02:00
|
|
|
= f.label :api_particulier_token
|
2021-09-15 10:53:09 +02:00
|
|
|
.desc.mb-2
|
2021-09-09 19:48:34 +02:00
|
|
|
%p= t('.token_description')
|
2021-09-15 10:53:09 +02:00
|
|
|
= f.password_field :api_particulier_token, class: 'form-control', required: :required
|
|
|
|
.text-right
|
2023-11-15 17:58:26 +01:00
|
|
|
= f.button t('views.shared.actions.save'), class: 'fr-btn send'
|