demarches-normaliennes/app/views/administrateurs/jeton_particulier/show.html.haml

26 lines
1.1 KiB
Text
Raw Normal View History

= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path],
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
[Procedure.human_attribute_name(:jeton_api_particulier), admin_procedure_api_particulier_path(@procedure)],
2024-05-28 10:58:03 +02:00
['Jeton Particulier']] }
2024-05-28 10:58:03 +02:00
.fr-container
%h1.fr-h2
Jeton Particulier
2024-05-28 10:58:03 +02:00
.fr-container
= form_with model: @procedure, url: admin_procedure_api_particulier_jeton_path, local: true 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|
2024-01-08 11:22:38 +01:00
- c.with_body do
2023-11-15 17:58:26 +01:00
%p
= t('.api_particulier_description_html', app_name: Current.application_name)
%fieldset.fr-fieldset
.fr-fieldset__element
= f.label :api_particulier_token, class: "fr-label"
%span.fr-hint-text= t('.token_description')
= f.password_field :api_particulier_token, class: 'fr-input', required: :required
.fr-fieldset__element
= f.button t('views.shared.actions.save'), class: 'fr-btn'