]> source.dussan.org Git - gitea.git/commit
Fix required checkboxes in issue forms (#27592) (#27692)
authorGiteabot <teabot@gitea.io>
Thu, 19 Oct 2023 13:35:29 +0000 (21:35 +0800)
committerGitHub <noreply@github.com>
Thu, 19 Oct 2023 13:35:29 +0000 (15:35 +0200)
commit6befca169558283ff57bb86ccac81e83dd42eea7
tree7cb1f4120372f6df485067f49699327ecdd03f8f
parent89d3766d22b6dfcbd5e9499d3f85cf889dafb91c
Fix required checkboxes in issue forms (#27592) (#27692)

Backport #27592 by @JakobDev

If you set a checkbox as required in a issue form at the moment, the
checkbox is checked and read only, what does not make much sense. With
this PR, the Checkbox actually needs to be checked. The label supports
now also Markdown. This matches GitHub's behaviour.

And yes, I know the CSS is a ugly workaround. It looks like the given
CSS code is part Fomantic and I don't know how to change that. The
Maintainers are free to change that.

![grafik](https://github.com/go-gitea/gitea/assets/15185051/3f35be75-b0b4-42a7-9048-a4970384a035)

Co-authored-by: JakobDev <jakobdev@gmx.de>
templates/repo/issue/fields/checkboxes.tmpl