{# ========================================================================== Wiederverwendbare Bausteine. Import in Templates: {% from "tesm_core/macros.html" import field, card_header, pill, ... %} ========================================================================== #} {% macro csrf(token) -%} {%- endmacro %} {% macro hint(text) -%} {% if text %}{% endif %} {%- endmacro %} {% macro field(name, label, value='', type='text', required=False, hint_text='', placeholder='', autocomplete='', readonly=False, disabled=False, error='', extra_class='', attrs='') -%} {%- endmacro %} {% macro select_field(name, label, options, selected='', hint_text='', required=False, disabled=False, extra_class='', attrs='') -%} {%- endmacro %} {% macro textarea_field(name, label, value='', rows=4, hint_text='', placeholder='', extra_class='', mono=False) -%} {%- endmacro %} {% macro checkbox(name, label, checked=False, value='1', hint_text='', disabled=False) -%} {%- endmacro %} {% macro switch(name, label, checked=False, value='1', disabled=False) -%} {%- endmacro %} {% macro pill(label, kind='') -%} {{ label }} {%- endmacro %} {% macro badge(label) -%}{{ label }}{%- endmacro %} {% macro card_header(title, sub='', icon_name='') -%}
{{ text }}
{% endif %} {{ caller() if caller is defined else '' }}