Fix checkbox field markup (#30666)
Fixes https://github.com/go-gitea/gitea/issues/30664. Previous use was not a supported way by fomantic and the misuse only became visible after the checkbox migration. (cherry picked from commit 1a2ae64b16f10b8d1e17197d18b9eb373faf58db)
This commit is contained in:
parent
9d1ffeaf8d
commit
b917571d81
2 changed files with 10 additions and 6 deletions
|
@ -41,10 +41,12 @@
|
||||||
<label for="redirect-uris">{{ctx.Locale.Tr "settings.oauth2_redirect_uris"}}</label>
|
<label for="redirect-uris">{{ctx.Locale.Tr "settings.oauth2_redirect_uris"}}</label>
|
||||||
<textarea name="redirect_uris" id="redirect-uris" required>{{StringUtils.Join .App.RedirectURIs "\n"}}</textarea>
|
<textarea name="redirect_uris" id="redirect-uris" required>{{StringUtils.Join .App.RedirectURIs "\n"}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="field ui checkbox {{if .Err_ConfidentialClient}}error{{end}}">
|
<div class="field {{if .Err_ConfidentialClient}}error{{end}}">
|
||||||
|
<div class="ui checkbox">
|
||||||
<label>{{ctx.Locale.Tr "settings.oauth2_confidential_client"}}</label>
|
<label>{{ctx.Locale.Tr "settings.oauth2_confidential_client"}}</label>
|
||||||
<input type="checkbox" name="confidential_client" {{if .App.ConfidentialClient}}checked{{end}}>
|
<input type="checkbox" name="confidential_client" {{if .App.ConfidentialClient}}checked{{end}}>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<button class="ui primary button">
|
<button class="ui primary button">
|
||||||
{{ctx.Locale.Tr "settings.save_application"}}
|
{{ctx.Locale.Tr "settings.save_application"}}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -61,10 +61,12 @@
|
||||||
<label for="redirect-uris">{{ctx.Locale.Tr "settings.oauth2_redirect_uris"}}</label>
|
<label for="redirect-uris">{{ctx.Locale.Tr "settings.oauth2_redirect_uris"}}</label>
|
||||||
<textarea name="redirect_uris" id="redirect-uris"></textarea>
|
<textarea name="redirect_uris" id="redirect-uris"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="field ui checkbox {{if .Err_ConfidentialClient}}error{{end}}">
|
<div class="field {{if .Err_ConfidentialClient}}error{{end}}">
|
||||||
|
<div class="ui checkbox">
|
||||||
<label>{{ctx.Locale.Tr "settings.oauth2_confidential_client"}}</label>
|
<label>{{ctx.Locale.Tr "settings.oauth2_confidential_client"}}</label>
|
||||||
<input type="checkbox" name="confidential_client" checked>
|
<input type="checkbox" name="confidential_client" checked>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<button class="ui primary button">
|
<button class="ui primary button">
|
||||||
{{ctx.Locale.Tr "settings.create_oauth2_application_button"}}
|
{{ctx.Locale.Tr "settings.create_oauth2_application_button"}}
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in a new issue