X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-full.html;h=5a5db962083552f70c996498cddcdf252aa7c1e4;hb=59794290ab64401e73ddc1bf5a5e06e0b41c8b1a;hp=850eaed8c518d2f10ac3d0969f68c6fde2e5ac6f;hpb=76b22e66bf8e615def0a24cd8cda23c3949eae70;p=freeside.git
diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html
index 850eaed8c..5a5db9620 100644
--- a/httemplate/elements/header-full.html
+++ b/httemplate/elements/header-full.html
@@ -44,13 +44,20 @@ Example:
%>
% unless ( $no_jquery ) {
-
-
-
+
+
+
+
+
% if ( $FS::CurrentUser::CurrentUser->option('printtofit') ) {
% }
% }
+% if ( $include_selectize ) {
+
+
+
+% }
<% include('init_overlib.html') |n %>
<% include('rs_init_object.html') |n %>
@@ -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,8 @@ 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', );
+my %status_image = ( 'status' => 'images/tick.png', 'warning' => 'images/tick.png', 'error' => 'images/error.png', );
+
%init>