Skip to content

Commit

Permalink
form class="core"
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Sep 3, 2024
1 parent 4854626 commit fa909dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions datasette_auth_tokens/templates/create_api_token.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>Create an API token</h1>
{% if token %}
<div>
<h2>Your API token</h2>
<form>
<form class="core">
<input type="text" class="copyable" style="width: 40%" value="{{ token }}">
<span class="copy-link-wrapper"></span>
</form>
Expand All @@ -46,7 +46,7 @@ <h2>Create another token</h2>
{% endfor %}
{% endif %}

<form action="{{ urls.path('-/api/tokens/create') }}" method="post">
<form class="core" action="{{ urls.path('-/api/tokens/create') }}" method="post">
<div>
<div style="margin-bottom: 0.5em">
<input type="text" name="description" placeholder="Optional token description" style="width: 40%">
Expand Down
2 changes: 1 addition & 1 deletion datasette_auth_tokens/templates/token_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>API token: {{ token.id }}</h1>

{% if token_status == "Active" and can_revoke %}
<br>
<form action="" method="POST">
<form class="core" action="{{ request.path }}" method="POST">
<p>
<input type="hidden" name="csrftoken" value="{{ csrftoken() }}">
<input type="submit" name="revoke" value="Revoke this token">
Expand Down

0 comments on commit fa909dd

Please sign in to comment.