{% macro tag_name_option(label, value, tag_names) %} {% endmacro %} {% macro active(page, active_pages) %} {% if page in active_pages %}class="active"{% endif %} {% endmacro %} {% macro color_item(color_no, label) %} {{ label }}
{% endmacro %} {% macro hiddens(form_hiddens, parent = "") %} {% spaceless %} {% for k, v in form_hiddens %} {% if parent != "" %} {% set hidden_name = parent ~ "[" ~ k ~ "]" %} {% else %} {% set hidden_name = k %} {% endif %} {% if v is iterable %} {{ _self.hiddens(v, hidden_name) }} {% else %} {% endif %} {% endfor %} {% endspaceless %} {% endmacro %} {% macro preview_changer(form_action, form_hiddens) %}
{{ _self.hiddens(form_hiddens) }}
{% endmacro %}