Skip to content

Commit 0157db8

Browse files
authored
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 <[email protected]>
1 parent 22b9c2c commit 0157db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/settings/webhook/settings.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
<!-- Branch filter -->
255255
<div class="field">
256256
<label for="branch_filter">{{ctx.Locale.Tr "repo.settings.branch_filter"}}</label>
257-
<input name="branch_filter" type="text" value="{{or .Webhook.BranchFilter "*"}}">
257+
<input id="branch_filter" name="branch_filter" type="text" value="{{or .Webhook.BranchFilter "*"}}">
258258
<span class="help">{{ctx.Locale.Tr "repo.settings.branch_filter_desc" | Str2html}}</span>
259259
</div>
260260

0 commit comments

Comments
 (0)