1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-22 15:06:52 +00:00

#8818 fix default checkbox checked value issue on anon config modal (#8825)

This commit is contained in:
webplusai 2024-12-17 15:01:35 +01:00 committed by GitHub
parent 060bea89ae
commit e48ea2dbe6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,12 +9,22 @@ class: mws-modal
<form class="mws-anon-config-form" method="POST" action="/admin/post-anon-config">
<div class="mws-modal-section">
<$set name="isChecked" value={{{ [[$:/config/MultiWikiServer/AllowAnonymousReads]get[text]] }}}>
<input type="checkbox" name="allowReads" checked=<<isChecked>>/> Allow anonymous reads
<$list filter="[<isChecked>match[yes]]">
<input type="checkbox" name="allowReads" checked/> Allow anonymous reads
</$list>
<$list filter="[<isChecked>!match[yes]]">
<input type="checkbox" name="allowReads"/> Allow anonymous reads
</$list>
</$set>
</div>
<div class="mws-modal-section">
<$set name="isChecked" value={{{ [[$:/config/MultiWikiServer/AllowAnonymousWrites]get[text]] }}}>
<input type="checkbox" name="allowWrites" checked=<<isChecked>>/> Allow anonymous writes
<$list filter="[<isChecked>match[yes]]">
<input type="checkbox" name="allowWrites" checked/> Allow anonymous writes
</$list>
<$list filter="[<isChecked>!match[yes]]">
<input type="checkbox" name="allowWrites"/> Allow anonymous writes
</$list>
</$set>
</div>
<div class="mws-modal-buttons">