{# Kata form element extensions. #} {# Create a tooltip for input element. tooltip - Tooltip help text to be displayed on the question mark icon. #} {% macro tooltip(id='', tooltip='', attrs={}) %} {% endmacro %} {# Create a warning tooltip for input element. tooltip - Tooltip help text to be displayed on the exclamation mark icon. #} {% macro warning_tooltip(id='', tooltip='', attrs={}) %} {% endmacro %} {# Create a button for adding more elements. onclick - Javascript content for onclick element. #} {% macro plusbutton(id='', onclick='', attrs={}) %} {% endmacro %} {# Builds a list of errors for the current form. errors - A dict of field/message pairs. type - The alert-* class that should be applied (default: "error") classes - A list of classes to apply to the wrapper (default: []) Example: {% import 'macros/form.html' as form %} {{ form.errors(error_summary, type="warning") }} #} {% macro kataerrors(errors={}, h=False, type="error", classes=[]) %} {% if errors %}
{{ _('The form contains invalid entries:') }}
{{ _('See further information about the error(s) from the field in question. Note, that errors in resource url may be in resource related data, like file type and algorithm.') }}