mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
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>
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user