| 1 |
{{ define "title"}}{{ t "page.new_api_key.title" }}{{ end }} |
| 2 |
|
| 3 |
{{ define "page_header"}} |
| 4 |
<section class="page-header" aria-labelledby="page-header-title"> |
| 5 |
<h1 id="page-header-title">{{ t "page.new_api_key.title" }}</h1> |
| 6 |
{{ template "settings_menu" dict "user" .user }} |
| 7 |
</section> |
| 8 |
{{ end }} |
| 9 |
|
| 10 |
{{ define "content"}} |
| 11 |
<form action="{{ routePath "/keys/save" }}" method="post" autocomplete="off"> |
| 12 |
<input type="hidden" name="csrf" value="{{ .csrf }}"> |
| 13 |
|
| 14 |
{{ if .errorMessage }} |
| 15 |
<div role="alert" class="alert alert-error">{{ .errorMessage }}</div> |
| 16 |
{{ end }} |
| 17 |
|
| 18 |
<label for="form-description">{{ t "form.api_key.label.description" }}</label> |
| 19 |
<input type="text" name="description" id="form-description" value="{{ .form.Description }}" spellcheck="false" required autofocus> |
| 20 |
|
| 21 |
<div class="buttons"> |
| 22 |
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.save" }}</button> {{ t "action.or" }} <a href="{{ routePath "/keys" }}">{{ t "action.cancel" }}</a> |
| 23 |
</div> |
| 24 |
</form> |
| 25 |
{{ end }} |