From 9e709039c560b9acb34160b557a4e88ae7bd19f8 Mon Sep 17 00:00:00 2001 From: Gregoo Date: Tue, 4 Feb 2025 19:35:14 +0100 Subject: [PATCH] Make form.checkbox generic --- templates/macro/form.html | 15 +++++++-------- templates/set/card.html | 2 +- templates/set/management.html | 4 ++-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/templates/macro/form.html b/templates/macro/form.html index 72af87f..7f7952b 100644 --- a/templates/macro/form.html +++ b/templates/macro/form.html @@ -1,19 +1,18 @@ -{% macro checkbox(item, metadata, parent=none, delete=false) %} +{% macro checkbox(name, id, prefix, url, checked, parent=none, delete=false) %} {% if g.login.is_authenticated() %} - {% set prefix=metadata.as_dataset() %} - -