summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html.jinja6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/base.html.jinja b/templates/base.html.jinja
index b0025bd..d7ec692 100644
--- a/templates/base.html.jinja
+++ b/templates/base.html.jinja
@@ -60,10 +60,12 @@ code in a proprietary work, I am not going to enforce this in court.
</aside>
{% endmacro %}
-{% macro label(label_text, label_name=none) %}
+{% macro label(label_text=none, label_name=none) %}
{% set for_attr = label_name and (label_name + "_field") %}
<label {{ {'for': for_attr, 'class': 'section-label'}|xmlattr }}>
- <span>{{ label_text }}</span>
+ {% if label_text is not none %}
+ <span>{{ label_text }}</span>
+ {% endif %}
{% if caller is defined %}
{{ caller() }}
{% endif %}