{% macro edit_field(field, field_width="col-sm-6", label_field_width="col-sm-4", catch_kwargs=true, extra_field="None") %}
{{ field(**kwargs) }}
{% if extra_field != "None" %} {{ extra_field | safe }} {% endif %} {% for error in field.errors %} {{ error }} {% endfor %}
{% endmacro %} {% macro alert_cco_lookup_disabled() %}
NOTICE:  The administrator has disabled outgoing CCO connection. Information was last retrieved on
{% endmacro %} {% macro alert_duplicate(name, duplicate_error) %} {% if duplicate_error %}
NOTE:  '{{ name }}' already exists in the database. The name must be an unique name on CSM Server.
{% endif %} {% endmacro %} {% macro space_for_none(value) %} {% if value %} {{ value }} {% else %}   {% endif %} {% endmacro %} {% macro show_install_status_icon(is_install_action, is_install_action_success, status) %} {% if is_install_action %} {% if (status == 'completed') or (status == 'failed') %} {% if is_install_action_success %} {{ green_check_icon(is_install_action) }} {% else %} {{ error_icon() }} {% endif %} {% else %} {{ gray_check_icon(is_install_action) }} {% endif %} {% else %}   {% endif %} {% endmacro %} {% macro file_open_icon() %} {% endmacro %} {% macro view_icon() %} {% endmacro %} {% macro log_icon(tooltip) %} {% endmacro %} {% macro error_icon() %} {% endmacro %} {% macro trace_icon() %} {% endmacro %} {% macro green_check_icon() %} {% endmacro %} {% macro gray_check_icon(value) %} {% endmacro %}