2023-11-05 12:57:35 -05:00
|
|
|
{{ define "title"}}{{ t "page.webauthn_rename.title" }}{{ end }}
|
|
|
|
|
2024-01-27 03:25:55 -05:00
|
|
|
{{ define "page_header"}}
|
|
|
|
<section class="page-header" aria-labelledby="page-header-title">
|
2024-01-25 01:22:18 -05:00
|
|
|
<h1 id="page-header-title">{{ t "page.webauthn_rename.title" }}</h1>
|
2024-01-27 03:25:55 -05:00
|
|
|
</section>
|
2024-01-25 01:22:18 -05:00
|
|
|
{{ end }}
|
2023-11-05 12:57:35 -05:00
|
|
|
|
2024-01-25 01:22:18 -05:00
|
|
|
{{ define "content"}}
|
2023-11-05 12:57:35 -05:00
|
|
|
<form action="{{ route "webauthnSave" "credentialHandle" .cred.HandleEncoded }}" method="post" autocomplete="off">
|
|
|
|
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
|
|
|
|
|
|
|
{{ if .errorMessage }}
|
2024-02-05 01:20:05 -05:00
|
|
|
<div role="alert" class="alert alert-error">{{ .errorMessage }}</div>
|
2023-11-05 12:57:35 -05:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<label for="form-title">{{ t "page.settings.webauthn.passkey_name" }}</label>
|
|
|
|
<input type="text" name="name" id="form-title" value="{{ .form.Name }}" autofocus>
|
|
|
|
|
|
|
|
<div class="buttons">
|
|
|
|
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{ end }}
|