dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 43f7ea89194414d170d0702e8d45705e78cdb67c
parent b31595a6c6042e0bfdc54128b1b4d1775e55db89
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon,  5 Dec 2022 02:33:57 -0500

toggles

Diffstat:
Mpkg/web/public/views/pages/admin/room-edit.gohtml | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/pkg/web/public/views/pages/admin/room-edit.gohtml b/pkg/web/public/views/pages/admin/room-edit.gohtml @@ -22,13 +22,19 @@ <div class="col-sm-12"> <div class="form-group"> - <div class="form-check"> - <input type="checkbox" class="form-check-input" name="is_ephemeral" id="is_ephemeral" value="1"{{ if .Data.IsEphemeral }} checked{{ end }} /> + <div class="form-check form-check-1"> + <div class="checkbox-wrapper form-check-input"> + <input class="my-cbx" type="checkbox" name="is_ephemeral" id="is_ephemeral" value="1"{{ if .Data.IsEphemeral }} checked{{ end }} /> + <label for="is_ephemeral" class="toggle"><span></span></label> + </div> <label class="form-check-label" for="is_ephemeral">{{ t "Is Ephemeral" . }}</label> </div> - <div class="form-check"> - <input type="checkbox" class="form-check-input" name="is_listed" id="is_listed" value="1"{{ if .Data.IsListed }} checked{{ end }} /> + <div class="form-check form-check-1"> + <div class="checkbox-wrapper form-check-input"> + <input class="my-cbx" type="checkbox" name="is_listed" id="is_listed" value="1"{{ if .Data.IsListed }} checked{{ end }} /> + <label for="is_listed" class="toggle"><span></span></label> + </div> <label class="form-check-label" for="is_listed">{{ t "Publicly listed" . }}</label> </div> </div>