{% block top_styles %} {% endblock top_styles %} {# @note: jQuery is loaded at top, otherwise django-smart-selects inline scripts will fail. #} {% block head %} {% endblock head %} {% block body %} {# @note: bootstrap.dialog is used instead of server-generated bootstrap modal. #} {# bs_modal('alert_modal', 'Message', [{'dismiss': 'modal', 'name': 'modal_close', 'text': 'Ok'}]) #}
{% if messages %}
{% for message in messages %} {% set msg_class='alert alert-danger' %} {% if message.tags %} {% set msg_class = add_css_classes(msg_class, message.tags) %} {% endif %}
× {{ message }}
{% endfor %}
{% endif %} {% block main %} {% endblock main %}
{% endblock body %} {% block bottom_scripts %} {% endblock bottom_scripts %}