Remove duplicate alert messages code and styles
authorMagnus Hagander <magnus@hagander.net>
Tue, 17 Jul 2018 09:37:19 +0000 (11:37 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 17 Jul 2018 09:37:19 +0000 (11:37 +0200)
All pages inheriting from confadmin_base.html already process alert
messages using that template. Having it on the admin benefits made the
same message show up twice on the same page.

In passing remove CSS that used to be used for messages on timereports
but aren't anymore.

template/confreg/timereport.html
template/confsponsor/admin_benefit.html

index 933de59cf24aae9c53f7a3fca7b0f3e8ebc8793b..da772fb1285a8d2fdf1e9f7bacb2673814330d82 100644 (file)
@@ -70,13 +70,6 @@ ul.errorlist {
   color:red;
   float: right;
 }
-ul.messages {
-  background-color: yellow;
-  list-style-type: none;
-}
-ul.messages li.error {
-  background-color: yellow;
-}
 select {
    width: 350px;
    margin-bottom: 10px;
index 2c08d217e032d08d9ad54b4c602c2c9ce3f80877..700d76d593a95ed57282edab890285187acb538c 100644 (file)
@@ -4,14 +4,6 @@
 {%block layoutblock%}
 <h1>Conference Sponsorship - {{sponsor}}</h1>
 
-{% if messages %}
-<ul style="background-color: yellow;">
-    {% for message in messages %}
-    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
-    {% endfor %}
-</ul>
-{% endif %}
-
 <h2>{{benefit.benefit}}</h2>
 {%if benefit.confirmed%}
 <p>This benefit has been fully confirmed.</p>