fix: use CSS class to indicate that runner name is required (#11718)

Followup to https://codeberg.org/forgejo/forgejo/pulls/11516#issuecomment-11634760

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11718
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
Co-committed-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
This commit is contained in:
Andreas Ahlenstorf 2026-03-17 18:51:29 +01:00 committed by Gusted
parent 178b2efbd2
commit 26f401cab4
4 changed files with 16 additions and 16 deletions

View file

@ -6,7 +6,7 @@
<fieldset>
<legend>{{ctx.Locale.Tr "actions.runners.create_runner.properties_fieldset"}}</legend>
<div class="form-field">
<label for="name">{{ctx.Locale.Tr "actions.runners.create_runner.name_label"}}</label>
<label class="required" for="name">{{ctx.Locale.Tr "actions.runners.create_runner.name_label"}}</label>
<input id="name" name="runner_name" type="text" value="{{.Runner.Name}}"{{if .Err_RunnerName}} class="error"{{end}}>
</div>
<div class="form-field">

View file

@ -6,7 +6,7 @@
<fieldset>
<legend>{{ctx.Locale.Tr "actions.runners.edit_runner.properties_fieldset"}}</legend>
<div class="form-field">
<label for="name">{{ctx.Locale.Tr "actions.runners.edit_runner.name_label"}}</label>
<label class="required" for="name">{{ctx.Locale.Tr "actions.runners.edit_runner.name_label"}}</label>
<input id="name" name="runner_name" type="text" value="{{.Runner.Name}}" {{if .Err_RunnerName}}class="error"{{end}}>
</div>
<div class="form-field">