X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-full.html;h=c73cf046319dd43a782d0116f3dccb67a76c223e;hb=73fc1e4f3a2100fdccbc5eace399b604c5645b5e;hp=07595a539c75454b7c67311b25d313b631423fcd;hpb=c22d84e565ab16db142395dce2e8621624eff140;p=freeside.git
diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html
index 07595a539..c73cf0463 100644
--- a/httemplate/elements/header-full.html
+++ b/httemplate/elements/header-full.html
@@ -44,16 +44,23 @@ Example:
%>
% unless ( $no_jquery ) {
-
-
-
+
+
+
+
+
% if ( $FS::CurrentUser::CurrentUser->option('printtofit') ) {
% }
% }
+% if ( $include_selectize ) {
+
+
+
+% }
<% include('init_overlib.html') |n %>
<% include('rs_init_object.html') |n %>
-
+
<% $head |n %>
%# announce our base path, and the Mason comp path of this page
@@ -73,10 +80,18 @@ Example:
<& notify-tickets.html &>
|
- Logged in as <% $FS::CurrentUser::CurrentUser->username |h %> logout Preferences
+ |
+ <% mt('Logged in as') |h %>
+ <% $FS::CurrentUser::CurrentUser->username |h %>
+
+ <% mt('logout') |h %>
+
+
+
+ <% mt('Preferences') |h %>
% if ( $conf->config("ticket_system")
% && FS::TicketSystem->access_right(\%session, 'ModifySelf') ) {
- | Ticketing preferences
+ | <% mt('Ticketing preferences') |h %>
% }
|
@@ -85,7 +100,7 @@ Example:
-
+
% if ( $menu_position eq 'top' ) {
@@ -185,6 +200,22 @@ Example:
<% $title_noescape || encode_entities($title) %>
+% my %cookies = CGI::Cookie->fetch($r);
+% if ( $cookies{freeside_status} ) {
+
+% foreach my $status_msg ( $cookies{freeside_status}->value ) {
+% my ($message, $type) = split /=/, $status_msg;
+% $type ||= 'status';
+
+ <% $message |h %> |
+
+% }
+
+
+% }
+
% unless ( $nobr ) {
% }
@@ -197,6 +228,7 @@ my( $title, $title_noescape, $menubar, $etc, $head ) = ( '', '', '', '', '' );
my( $nobr, $nocss, $no_jquery ) = ( 0, 0, 0 );
my $mobile;
+my $include_selectize;
if ( ref($_[0]) ) {
my $opt = shift;
@@ -209,6 +241,7 @@ if ( ref($_[0]) ) {
$nocss = $opt->{nocss};
$mobile = $opt->{mobile};
$no_jquery = $opt->{no_jquery};
+ $include_selectize = $opt->{include_selectize} ? 1 : 0;
} else {
($title, $menubar) = ( shift, shift );
$etc = @_ ? shift : ''; #$etc is for things like onLoad= etc.
@@ -239,4 +272,7 @@ if ( scalar(@agentnums) == 1 ) {
$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>