Changeset - f188b156603d
[Not reviewed]
default
0 2 4
Marcin Kuzminski - 15 years ago 2010-05-30 17:52:20
marcin@python-works.com
Added flash messages support
6 files changed with 68 insertions and 3 deletions:
0 comments (0 inline, 0 general)
pylons_app/public/css/monoblue_custom.css
Show inline comments
 
@@ -44,8 +44,8 @@ a:HOVER{
 
}
 
.table_disp td {
 
    border-left: 1px solid #AAAAAA;
 
    padding-left: 2px;
 
    padding-right: 0px;
 
    padding-left: 4px;
 
    padding-right: 4px;
 
}
 

	
 
table tr.parity0:hover,table tr.parity1:hover {
 
@@ -99,6 +99,61 @@ table tr.parity1 {
 
    cursor: pointer;
 
}
 

	
 
.flash_msg ul{
 
	margin:0;
 
	padding:25px 0px 0px 0px;
 
	
 
}
 
.error_msg {
 
	background-color:#FFCFCF;
 
	background-image: url("/images/icons/error_msg.png");
 
	border:1px solid #FF9595;
 
	color:#CC3300;
 
}
 
.warning_msg {
 
	background-color:#FFFBCC;
 
	background-image: url("/images/icons/warning_msg.png");
 
	border:1px solid #FFF35E;
 
	color:#C69E00;
 
}
 
.success_msg {
 
	background-color:#D5FFCF;
 
	background-image: url("/images/icons/success_msg.png");
 
	border:1px solid #97FF88;
 
	color:#009900;
 
}
 
.notice_msg {
 
	background-color:#DCE3FF;
 
	background-image: url("/images/icons/notice_msg.png");
 
	border:1px solid #93A8FF;
 
	color:#556CB5;
 
}
 

	
 
.success_msg, .error_msg, .notice_msg, .warning_msg{
 
	background-position:10px center;
 
	background-repeat:no-repeat;
 
	font-size:12px;
 
	font-weight:bold;
 
	min-height:14px;
 
	line-height:14px;
 
	margin-bottom:0px;
 
	margin-top:0px;
 
	padding:3px 10px 3px 40px;
 
	display:block;
 
	overflow: auto;
 
}        
 

	
 
#msg_close {
 
	background:transparent url("icons/cross_grey_small.png")	no-repeat scroll 0 0;
 
	cursor:pointer;
 
	height:16px;
 
	position:absolute;
 
	right:5px;
 
	top:5px;
 
	width:16px;
 
}
 

	
 

	
 
div#main {
 
	padding: 5px;
 
}
pylons_app/public/images/icons/error_msg.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
pylons_app/public/images/icons/notice_msg.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
pylons_app/public/images/icons/success_msg.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
pylons_app/public/images/icons/warning_msg.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
pylons_app/templates/base/base.html
Show inline comments
 
@@ -16,7 +16,17 @@
 
    <div class="page-header">
 
        <h1>${next.breadcrumbs()}</h1>
 
        ${self.page_nav()}
 
    <div id="main">
 
    <div class="flash_msg">
 
    <% messages = h.flash.pop_messages() %>
 
		% if messages:
 
		<ul id="flash-messages">
 
		    % for message in messages:
 
		    <li class="${message.category}_msg">${message}</li>
 
		    % endfor
 
		</ul>
 
		% endif
 
    </div>        
 
    <div id="main"> 
 
    	${next.main()}
 
    </div>
 
    <div class="page-footer">
0 comments (0 inline, 0 general)