diff options
author | Yarden Shoham <git@yardenshoham.com> | 2024-02-17 15:32:43 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-02-17 23:24:32 +0100 |
commit | f9c931d85881949287eddccc6071265e9980eb2e (patch) | |
tree | 43bdd99461bb594b8cbc42af91315e6e7d380683 /templates | |
parent | Fix missing template for follow button in organization (#29215) (diff) | |
download | forgejo-f9c931d85881949287eddccc6071265e9980eb2e.tar.xz forgejo-f9c931d85881949287eddccc6071265e9980eb2e.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>
(cherry picked from commit 0157db84b13203877c098a258abeb387d59f3486)
Diffstat (limited to 'templates')
-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> |