diff options
author | Yarden Shoham <git@yardenshoham.com> | 2024-02-17 16:32:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-17 14:32:43 +0000 |
commit | 0157db84b13203877c098a258abeb387d59f3486 (patch) | |
tree | 20cd8f631c79463f74f13438a8e9dd7447011112 /templates/repo | |
parent | 22b9c2c95c30e77ec444c629eb323325d2c04676 (diff) | |
download | gitea-0157db84b13203877c098a258abeb387d59f3486.tar.gz gitea-0157db84b13203877c098a258abeb387d59f3486.zip |
Fix label `for` pointing to a `name` instead of `id` in webhook settings (#29209)
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/webhook/settings.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/webhook/settings.tmpl b/templates/repo/settings/webhook/settings.tmpl index addf99d45a..3dfa094cf5 100644 --- a/templates/repo/settings/webhook/settings.tmpl +++ b/templates/repo/settings/webhook/settings.tmpl @@ -254,7 +254,7 @@ <!-- Branch filter --> <div class="field"> <label for="branch_filter">{{ctx.Locale.Tr "repo.settings.branch_filter"}}</label> - <input name="branch_filter" type="text" value="{{or .Webhook.BranchFilter "*"}}"> + <input id="branch_filter" name="branch_filter" type="text" value="{{or .Webhook.BranchFilter "*"}}"> <span class="help">{{ctx.Locale.Tr "repo.settings.branch_filter_desc" | Str2html}}</span> </div> |