summaryrefslogtreecommitdiffstats
path: root/templates/repo
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/repo
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/repo')
-rw-r--r--templates/repo/settings/deploy_keys.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl
index c5d2d2a04a..a283150c60 100644
--- a/templates/repo/settings/deploy_keys.tmpl
+++ b/templates/repo/settings/deploy_keys.tmpl
@@ -18,11 +18,11 @@
{{ctx.Locale.Tr "repo.settings.deploy_key_desc"}}
</div>
<div class="field {{if .Err_Title}}error{{end}}">
- <label for="title">{{ctx.Locale.Tr "repo.settings.title"}}</label>
+ <label for="ssh-key-title">{{ctx.Locale.Tr "repo.settings.title"}}</label>
<input id="ssh-key-title" name="title" value="{{.title}}" autofocus required>
</div>
<div class="field {{if .Err_Content}}error{{end}}">
- <label for="content">{{ctx.Locale.Tr "repo.settings.deploy_key_content"}}</label>
+ <label for="ssh-key-content">{{ctx.Locale.Tr "repo.settings.deploy_key_content"}}</label>
<textarea id="ssh-key-content" name="content" placeholder="{{ctx.Locale.Tr "settings.key_content_ssh_placeholder"}}" required>{{.content}}</textarea>
</div>
<div class="field">