From 5ff262e8bf83eb64cd719d8880f2db5462615f9d Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Wed, 23 Jun 2010 13:14:30 +0000 Subject: [PATCH] Fixed #12803 - Added styling for 'error' and 'warning' messages in admin. Thanks to bboli and sebastian_noack for the report, DrMeers for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13393 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/media/css/base.css | 8 ++++++++ django/contrib/admin/templates/admin/base.html | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/django/contrib/admin/media/css/base.css b/django/contrib/admin/media/css/base.css index da502f357a4..645f1725b5f 100644 --- a/django/contrib/admin/media/css/base.css +++ b/django/contrib/admin/media/css/base.css @@ -445,6 +445,14 @@ ul.messagelist li { background: #ffc url(../img/admin/icon_success.gif) 5px .3em no-repeat; } +ul.messagelist li.warning{ + background-image: url(../img/admin/icon_alert.gif); +} + +ul.messagelist li.error{ + background-image: url(../img/admin/icon_error.gif); +} + .errornote { font-size: 12px !important; display: block; diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index 3fd9eb3770b..4221e2d1a70 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -56,7 +56,9 @@ {% endif %} {% if messages %} - + {% endif %}