refactor(api): use the new api token creation wizard

This commit is contained in:
simon lehericey 2024-01-17 11:21:11 +01:00
parent 852eedbc50
commit eae07cab8c
3 changed files with 4 additions and 0 deletions

View file

@ -2,3 +2,4 @@ en:
tokens_title: API identification tokens
first_paragraph_html: |
These tokens are needed to make calls to the API of %{application_name}. You can <strong>click on </strong><a target=_blank rel="noopener" href="%{api_doc_url}" title="See %{application_name} API documentation">this link</a> to check our documentation
create_token: create a new token

View file

@ -2,3 +2,4 @@ fr:
tokens_title: Jetons didentification de lAPI (token)
first_paragraph_html: |
Ces jetons sont nécessaires pour effectuer des appels vers lAPI de %{application_name}. Vous pouvez <strong>consulter notre documentation en suivant </strong><a target="_blank" rel="noopener" href="%{api_doc_url}" title="Voir la documentation de l'API de %{application_name}">ce lien</a>
create_token: Créer un nouveau jeton

View file

@ -4,5 +4,7 @@
%p
= t('.first_paragraph_html', application_name: APPLICATION_NAME, api_doc_url: API_DOC_URL)
= link_to t('.create_token'), nom_api_tokens_path, class: "fr-btn fr-btn--secondary fr-mt-2w"
%ul.fr-mt-4w
= render Profile::APITokenComponent.with_collection(api_tokens)