make list text clickable to toggle

This commit is contained in:
2026-08-01 23:24:13 -04:00
parent 279cdb869d
commit a7544f837e
2 changed files with 13 additions and 2 deletions
+2 -2
View File
@@ -664,11 +664,11 @@ fn item_row(item: &Item, categories: &[Category], csrf_token: &str) -> Markup {
{
input type="hidden" name="csrf" value=(csrf_token);
input type="hidden" name="checked" value=(next_checked);
button class="check-button" type="submit" aria-label=(if item.checked { "Mark unchecked" } else { "Mark complete" }) {
button id=(format!("item-check-{}", item.id)) class="check-button" type="submit" aria-label=(if item.checked { "Mark unchecked" } else { "Mark complete" }) {
@if item.checked { "" } @else { "" }
}
}
div class="item-copy" {
label class="item-copy" for=(format!("item-check-{}", item.id)) {
@if !item.quantity.is_empty() {
span class="item-qty" { "(" (item.quantity) ")" }
}