aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/settings/keys_principal.tmpl
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2024-02-16 15:59:48 +0200
committerGitHub <noreply@github.com>2024-02-16 13:59:48 +0000
commit7132a0ba75d6fe734d9f950f217a5ceb81375328 (patch)
treef680689fa3f3d23987c4574852caebe3b3b20264 /templates/user/settings/keys_principal.tmpl
parent236e12184404998c8edf7efa6de7fccf9d0ee814 (diff)
downloadgitea-7132a0ba75d6fe734d9f950f217a5ceb81375328.tar.gz
gitea-7132a0ba75d6fe734d9f950f217a5ceb81375328.zip
Reference labels by IDs instead of names in `keys` settings (#29194)
Here's the spec for the `for` attribute: https://html.spec.whatwg.org/multipage/forms.html#attr-label-for Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Diffstat (limited to 'templates/user/settings/keys_principal.tmpl')
-rw-r--r--templates/user/settings/keys_principal.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/keys_principal.tmpl b/templates/user/settings/keys_principal.tmpl
index 513afc2b61..a7ab12dd78 100644
--- a/templates/user/settings/keys_principal.tmpl
+++ b/templates/user/settings/keys_principal.tmpl
@@ -44,7 +44,7 @@
<form class="ui form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
<div class="field {{if .Err_Content}}error{{end}}">
- <label for="content">{{ctx.Locale.Tr "settings.principal_content"}}</label>
+ <label for="ssh-principal-content">{{ctx.Locale.Tr "settings.principal_content"}}</label>
<input id="ssh-principal-content" name="content" value="{{.content}}" autofocus required>
</div>
<input name="title" type="hidden" value="principal">