From 5346a2f7a4b9f417e379aae058ab0150e15c2636 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 15 Oct 2021 12:31:22 +0200 Subject: [PATCH] templates/macros: Add macro for single button post forms --- server/templates/macros.htm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/templates/macros.htm b/server/templates/macros.htm index 758fede..c8e3a7a 100644 --- a/server/templates/macros.htm +++ b/server/templates/macros.htm @@ -19,6 +19,10 @@ a:active { text-decoration: none; } + form.form-single-button { + display: inline-block; + } + form.form-single-button button, .button { padding: .1rem .2rem; margin: 0 .1rem; @@ -27,3 +31,10 @@ } {% endmacro %} + +{% macro post_form(uri, key, val, text, fragment="") %} +
+ + +
+{% endmacro %}