Browse Source

Add feedback messages to base template

(with Foundation markup)
pull/6/head
Marcio Mazza 10 years ago
parent
commit
9dff1815d2
  1. 11
      templates/base.html

11
templates/base.html

@ -26,7 +26,16 @@
{% block content_container %} {% block content_container %}
{# FIXME: row class is not for that: replace it keeping the layout (notice width) #} {# FIXME: row class is not for that: replace it keeping the layout (notice width) #}
<div id="body_content" class="row"> <div id="body_content" class="row">
{% block content %}{% endblock %}
{# Feedback messages #}
{% for message in messages %}
<div data-alert class="alert-box {% if message.tags == 'error' %}alert{% else %}{{ message.tags }}{% endif %} radius">
{{ message|safe }}
<a href="#" class="close">&times;</a>
</div>
{% endfor %}
{% block content %}{% endblock %}
</div> </div>
{% endblock %} {% endblock %}
<!-- END Content --> <!-- END Content -->

Loading…
Cancel
Save