aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-06-02 22:03:40 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-08-11 11:28:14 +0100
commit9156b1c0de51e9b83011c847d6bdddf916b786b2 (patch)
tree4afbf41b7f2fad23927312db6fc7a37498ee9d86 /templates
parent84709dbca6c0da26e61809d7cb8df2300b6ce288 (diff)
downloadopenembedded-core-contrib-9156b1c0de51e9b83011c847d6bdddf916b786b2.tar.gz
Enable messages framework and use it to display "layer saved" message
The Django messages framework is the proper way to handle these kinds of messages. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html5
-rw-r--r--templates/layerindex/editlayer.html5
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/base.html b/templates/base.html
index f075dee237..a1cdf4433b 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -98,6 +98,11 @@
{% endblock %}
<div id="content" class="container top-padded">
+ {% if messages %}
+ {% for message in messages %}
+ <div{% if message.tags %} class="alert {{ message.tags }}"{% endif %}>{{ message }}</div>
+ {% endfor %}
+ {% endif %}
{% block content %}{% endblock %}
</div>
diff --git a/templates/layerindex/editlayer.html b/templates/layerindex/editlayer.html
index e859d6d22d..714a89a7bf 100644
--- a/templates/layerindex/editlayer.html
+++ b/templates/layerindex/editlayer.html
@@ -31,11 +31,6 @@
{% endblock %}
{% block formtop %}
-{% if form.was_saved %}
- <div class="alert alert-success">
- Changes saved successfully.
- </div>
-{% endif %}
{% endblock %}
<form id="edit_layer_form" method="post">
{% csrf_token %}