aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/settings/applications_oauth2_list.tmpl
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-04-23 23:53:57 +0200
committerGitHub <noreply@github.com>2024-04-23 21:53:57 +0000
commit1a2ae64b16f10b8d1e17197d18b9eb373faf58db (patch)
tree53cec59a9010107777a7c85bbd15d67861b204bc /templates/user/settings/applications_oauth2_list.tmpl
parent2ee93ea17869de8fe24c6965fa3416ff30d55c5a (diff)
downloadgitea-1a2ae64b16f10b8d1e17197d18b9eb373faf58db.tar.gz
gitea-1a2ae64b16f10b8d1e17197d18b9eb373faf58db.zip
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.
Diffstat (limited to 'templates/user/settings/applications_oauth2_list.tmpl')
-rw-r--r--templates/user/settings/applications_oauth2_list.tmpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/user/settings/applications_oauth2_list.tmpl b/templates/user/settings/applications_oauth2_list.tmpl
index cfcb6d053d..c75cbd532e 100644
--- a/templates/user/settings/applications_oauth2_list.tmpl
+++ b/templates/user/settings/applications_oauth2_list.tmpl
@@ -61,9 +61,11 @@
<label for="redirect-uris">{{ctx.Locale.Tr "settings.oauth2_redirect_uris"}}</label>
<textarea name="redirect_uris" id="redirect-uris"></textarea>
</div>
- <div class="field ui checkbox {{if .Err_ConfidentialClient}}error{{end}}">
- <label>{{ctx.Locale.Tr "settings.oauth2_confidential_client"}}</label>
- <input type="checkbox" name="confidential_client" checked>
+ <div class="field {{if .Err_ConfidentialClient}}error{{end}}">
+ <div class="ui checkbox">
+ <label>{{ctx.Locale.Tr "settings.oauth2_confidential_client"}}</label>
+ <input type="checkbox" name="confidential_client" checked>
+ </div>
</div>
<button class="ui primary button">
{{ctx.Locale.Tr "settings.create_oauth2_application_button"}}