From d6a729b5a522ecf2a8038937da4cd8e7bb942c83 Mon Sep 17 00:00:00 2001 From: Gregoo Date: Thu, 30 Jan 2025 17:39:55 +0100 Subject: [PATCH] Move the checkbox logic inside the macro --- templates/macro/form.html | 13 +++++++------ templates/set/card.html | 4 +--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/templates/macro/form.html b/templates/macro/form.html index 499c220..379309f 100644 --- a/templates/macro/form.html +++ b/templates/macro/form.html @@ -1,17 +1,18 @@ -{% macro checkbox(prefix, id, text, url, checked, delete=false) %} +{% macro checkbox(item, metadata, delete=false) %} {% if g.login.is_authenticated() %} - -