demarches-normaliennes/app/views/administrateurs/api_tokens/nom.html.haml

23 lines
1,002 B
Text
Raw Normal View History

2024-01-17 11:05:56 +01:00
- content_for :title, 'Nouveau jeton dʼAPI'
= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Tableau de bord', tableau_de_bord_helper_path],
[t('users.profil.show.profile'), profil_path],
2024-01-25 11:13:47 +01:00
[t('administrateurs.api_tokens.nom.new_token')]] }
2024-01-17 11:05:56 +01:00
.fr-container.fr-mt-2w{ 'data-turbo': 'true' }
2024-01-17 11:05:56 +01:00
%h1= t('.new_token')
2024-01-25 11:13:47 +01:00
= form_with url: autorisations_admin_api_tokens_path, method: :get, html: { class: 'fr-mt-2w' } do |f|
2024-01-17 11:05:56 +01:00
.fr-input-group
= f.label :name, class: 'fr-label' do
= t('.name')
%span.fr-hint-text= t('.name-hint')
= f.text_field :name, class: 'fr-input width-33', autocomplete: 'off', autocapitalize: 'off', autocorrect: 'off', spellcheck: false, required: true, value: @name, autofocus: true
%ul.fr-btns-group.fr-btns-group--inline
%li
= f.button type: :submit, class: "fr-btn fr-btn--primary" do
= t('.continue')
%li
= link_to t('.cancel'), profil_path, class: "fr-btn fr-btn--secondary"