create_api_key.html 943 B

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