From 079680d72e88432f8fc895e355b439f5399d04c1 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 8 May 2019 16:15:54 -0500 Subject: [PATCH] Add `simple_field()` def for base falafel template hopefully this is a useful abstraction which will allow for smoother transition to Buefy-style fields, when the time comes? --- tailbone/templates/themes/falafel/base.mako | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tailbone/templates/themes/falafel/base.mako b/tailbone/templates/themes/falafel/base.mako index e9ff5ac0..6478fe36 100644 --- a/tailbone/templates/themes/falafel/base.mako +++ b/tailbone/templates/themes/falafel/base.mako @@ -363,3 +363,16 @@ + +<%def name="simple_field(label, value)"> + ## TODO: keep this? only used by personal profile view currently + ## (although could be useful for any readonly scenario) +
+
+ +
+ ${'' if value is None else value} +
+
+
+