Part-DB.Part-DB-server/templates/users/api_token_create.html.twig

16 lines
453 B
Twig
Raw Normal View History

{% extends "main_card.html.twig" %}
{% block card_title %}Add API token{% endblock %}
{% block card_content %}
{# Show API secret after submit #}
{% if secret is not null %}
<div class="alert alert-success">
Your API token is: <strong>{{ secret }}</strong><br>
<span class="text-muted">Please save it. You wont be able to see it again!</span>
</div>
{% endif %}
{{ form(form) }}
{% endblock %}