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],
|
|
|
|
|
[t('api_tokens.nom.new_token')]] }
|
|
|
|
|
|
2024-01-18 06:53:28 +01:00
|
|
|
|
.fr-container.fr-mt-2w{ 'data-turbo': 'true' }
|
2024-01-17 11:05:56 +01:00
|
|
|
|
%h1= t('.new_token')
|
|
|
|
|
= form_with url: autorisations_api_tokens_path, method: :get, html: { class: 'fr-mt-2w' } do |f|
|
|
|
|
|
.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"
|