mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-15 18:56:59 +00:00
Fix wrong error highlighting on install page (#4063)
More details are in PR message. Changes applied: * replace `Err_Services` with more specific `Err_DisabledRegistration` * highlight the self-registration option instead of services section Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4063 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
parent
c35d86f976
commit
c320f16a0b
2 changed files with 3 additions and 3 deletions
|
@ -154,7 +154,7 @@
|
|||
</div>
|
||||
<div class="inline field">
|
||||
<div class="ui checkbox" id="disable-registration">
|
||||
<label>{{ctx.Locale.Tr "install.disable_registration"}}</label>
|
||||
<label class="{{if .Err_DisabledRegistration}}text red{{end}}">{{ctx.Locale.Tr "install.disable_registration"}}</label>
|
||||
<input name="disable_registration" type="checkbox" {{if .disable_registration}}checked{{end}}>
|
||||
</div>
|
||||
<span class="help">{{ctx.Locale.Tr "install.disable_registration.description"}}</span>
|
||||
|
@ -212,7 +212,7 @@
|
|||
|
||||
<!-- Server and other services -->
|
||||
<details class="collapsible optional field">
|
||||
<summary class="tw-py-2{{if .Err_Services}} text red{{end}}">
|
||||
<summary class="tw-py-2">
|
||||
{{ctx.Locale.Tr "install.server_service_title"}}
|
||||
</summary>
|
||||
<div class="inline field">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue