2021-11-17 11:00:52 +01:00

23 lines
716 B
HTML

{% extends "base.html" %}
{% block content %}
<section class="max-w-xl content">
<h1>API</h1>
<div class="card ~neutral !low p-0" method="POST">
<div class="section ~neutral !normal p-4">
<div>
<p class="label">Token</p>
<div class="flex justify-between">
<span class='chip ~info !normal'>
{{request.user.api_token}}
</span>
<a class="href" href="{% url 'dashboard:api_token_refresh' %}">
<button type="submit" class="button ~warning !high">Refresh token</button>
</a>
</div>
</div>
</div>
</div>
</section>
{% endblock %}