# HG changeset patch # User BenoƮt Allard # Date 1412667946 -7200 # Node ID df5182d0787f5ba6a6b44470891fc563526c4747 # Parent c79082d0d44d608a9ede03e02bef90000f089eee Some macro cleanups diff -r c79082d0d44d -r df5182d0787f farol/templates/macros.j2 --- a/farol/templates/macros.j2 Mon Oct 06 15:58:25 2014 +0200 +++ b/farol/templates/macros.j2 Tue Oct 07 09:45:46 2014 +0200 @@ -56,26 +56,6 @@ {% endmacro %} -{% macro modal(id, title, size=None) %} -{# /.modal #} -{% endmacro %} - {% macro textarea(name, label, placeholder="", value=None, rows=10, required=False) %}
{% if caller %} @@ -132,7 +112,8 @@ @@ -145,6 +126,26 @@
{% endmacro %} +{% macro modal(id, title, size=None) %} +{# /.modal #} +{% endmacro %} + {# This should be placed inside a .form-horizontal #} {% macro label_value(label, value, left=2, right=10) %}
@@ -156,14 +157,6 @@ {% endmacro %} {% macro examples(list) %} -{% if False %} -
-
Example{{ 's' if list | length > 1 }}:
- {% for elem in list %} -
{{ elem }}
- {% endfor %} -
-{% else %}

Example{{ 's' if list | length > 1 }}:

{% if list | length == 1 %} {{ list[0] }} @@ -174,5 +167,4 @@ {%- endfor %} {% endif %} -{% endif %} {% endmacro %}