projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 79913 - Mass agent transfer files
[freeside.git]
/
httemplate
/
elements
/
header-full.html
diff --git
a/httemplate/elements/header-full.html
b/httemplate/elements/header-full.html
index
5586a0a
..
c73cf04
100644
(file)
--- a/
httemplate/elements/header-full.html
+++ b/
httemplate/elements/header-full.html
@@
-204,8
+204,10
@@
Example:
% if ( $cookies{freeside_status} ) {
<BR>
% foreach my $status_msg ( $cookies{freeside_status}->value ) {
% if ( $cookies{freeside_status} ) {
<BR>
% foreach my $status_msg ( $cookies{freeside_status}->value ) {
- <TABLE CLASS="fsinnerbox" STYLE="background-color:#eeffee"><TR>
- <TD><IMG SRC="<% $fsurl %>images/tick.png"> <% $status_msg |h %></TD>
+% my ($message, $type) = split /=/, $status_msg;
+% $type ||= 'status';
+ <TABLE CLASS="fsinnerbox" STYLE="background-color:<% $status_color{$type} %>"><TR>
+ <TD><IMG SRC="<% $fsurl %>images/tick.png"> <% $message |h %></TD>
</TR></TABLE>
% }
<script src="<% $fsurl %>elements/js.cookie.js"></script>
</TR></TABLE>
% }
<script src="<% $fsurl %>elements/js.cookie.js"></script>
@@
-270,4
+272,7
@@
if ( scalar(@agentnums) == 1 ) {
$company_url = $conf->config('company_url');
}
$company_url = $conf->config('company_url');
}
+## status->green(#eeffee), warning->yellow(#fdfd96), error->red(#f97c7c)
+my %status_color = ( 'status' => '#eeffee', 'warning' => '#fefbd0', 'error' => '#f97c7c', );
+
</%init>
</%init>