{% macro textbox( field, hint=False, highlight_tags=False, autofocus=False, help_link=None, help_link_text=None, width='2-3', suffix=None, disabled=False, safe_error_message=False ) %}
{% if disabled %}

{{ field(**{ 'class': 'form-control form-control-{} textbox-highlight-textbox'.format(width) if highlight_tags else 'form-control form-control-{} {}'.format(width, 'textbox-right-aligned' if suffix else ''), 'data-module': 'highlight-tags' if highlight_tags else '', 'disabled': 'disabled' }) }}

{% else %} {{ field(**{ 'class': 'form-control form-control-{} textbox-highlight-textbox'.format(width) if highlight_tags else 'form-control form-control-{} {}'.format(width, 'textbox-right-aligned' if suffix else ''), 'data-module': 'highlight-tags' if highlight_tags else '' }) }} {% endif %} {% if suffix %} {{ suffix }} {% endif %} {% if help_link and help_link_text %} {% endif %}
{% endmacro %}