{% extends 'user/form.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block form_body %}
{{ 'api_password.intro'|trans }}
URL: {{ url('api.swagger_ui', {}, false)|replace({'/doc': ''}) }}
{{ 'api_token_hidden'|trans }}
{{ created_token.token }}
{{ 'name'|trans }} | {{ 'last_usage'|trans }} | {{ 'expires'|trans }} | |
---|---|---|---|
{{ token.name }} | {% if token.lastUsage is not null %} {{ token.lastUsage|date_time }} {% endif %} | {% if token.expiresAt is not null %} {{ token.expiresAt|date_short }} {% endif %} | {{ widgets.action_button('trash', {'url': path('delete_api_token', {id: token.id}), class: 'api-link', 'attr': { 'data-question': 'confirm.delete', 'data-event': 'kimai.accessToken', 'data-method': 'DELETE', 'data-question': 'confirm.delete', 'data-msg-error': 'action.delete.error', 'data-msg-success': 'action.delete.success' }}) }} |