{% macro open(method, action, attributes) %}
{% endmacro %} {% macro close() %}
{% endmacro %} {% macro show_tooltip(id) %} {# Uncomment to enable tooptips: #} {% set title = tooltips[id] %} {% if title is not empty %} {% endif %} {% endmacro %} {% macro row(label, element, id, titleRow, row_id) %} {% import _self as form %} {% if row_id is not empty %} {% else %} {% endif %} {% if titleRow is not empty %}

{{ label }} {{ form.show_tooltip(id) }}

{% else %} {% endif %} {% if id is not empty %} {% else %} {% endif %} {{ element|raw }} {% endmacro %} {% macro rowpro(label, link, id, element, titleRow) %} {% import _self as form %} {% if titleRow is not empty %}

{{ label }} {{ form.show_tooltip(id) }}

{% else %} {% endif %}
{{ element|raw }} {% endmacro %} {% macro input(type = 'text', name, value, attributes) %} {% endmacro %} {% macro text(name, value, attributes) %} {% import _self as form %} {{ form.input('text', name, value, attributes) }} {% endmacro %} {% macro password(name, value, attributes) %} {% import _self as form %} {{ form.input('password', name, value, attributes) }} {% endmacro %} {% macro button(name, value, attributes) %} {% import _self as form %} {% if attributes.class is defined %} {% set attributes = attributes|merge({ 'class': attributes.class ~ ' button button-primary' }) %} {% endif %} {{ form.input('button', name, value, attributes) }} {% endmacro %} {% macro checkbox(name, value, attributes) %} {% import _self as form %} {{ form.input('checkbox', name, value, attributes) }} {% endmacro %} {% macro file(name, value, attributes) %} {% import _self as form %} {{ form.input('file', name, value, attributes) }} {% endmacro %} {% macro hidden(name, value, attributes) %} {% import _self as form %} {{ form.input('hidden', name, value, attributes) }} {% endmacro %} {% macro radio(name, value, attributes) %} {% import _self as form %} {{ form.input('radio', name, value, attributes) }} {% endmacro %} {% macro color(name, value, attributes) %} {% import _self as form %} {{ form.input('color', name, value, attributes) }} {% endmacro %} {% macro submit(name, value, attributes) %} {% import _self as form %} {% if attributes.class is defined %} {% set attributes = attributes|merge({ 'class': attributes.class ~ ' button button-primary' }) %} {% endif %} {{ form.input('submit', name, value, attributes) }} {% endmacro %} {% macro select(name, options, selected, attributes) %} {% endmacro %} {% macro selectv(name, options, selected, attributes) %} {% endmacro %} {% macro span(name, text, attributes) %} {{ text|lower }} {% endmacro %} {% macro selected(actual, expected) %} {% if actual == expected %}selected="selected"{% endif %} {% endmacro %} {% macro label(label, for) %} {% endmacro %}