{%- macro extra_field(content, index=0, data={}, errors={}, name_template='extras__{index}__') -%} {%- set prefix = name_template.format(index=index) -%} {%- set id = 'field-extras-{}'.format(index+1) -%} {%- set error_list = errors[prefix~'key'] or errors[prefix~'value'] -%} {# control-custom class is is used by custom-fields module #}
{{ _('The form contains invalid entries:') }}
__Bold text__ or _italic text_
# title
## secondary title
### etc
* list
* of
* items
http://auto.link.ed/
Please note: HTML tags are stripped out for security reasons
{%- endtrans %} {%- endif %} {%- endcall -%} {%- endmacro %} {%- macro markdown(content, name, id, label, value, placeholder, required, errors=[], group_class="form-group control-full") -%} {%- set field_id = id or (name and "field-" ~ name) or (label and ui.util.id()) or "" -%} {% set popover_id = ui.util.id() %} {{ ui.markdown_popover(id=popover_id) }} {%- set aria_attrs = kwargs.setdefault("aria", {}) -%} {%- if errors %}{%- do aria_attrs.setdefault("invalid", "true") -%}{%- endif -%}