RT# 82949 - added the ability to bulk increase package fees (setup and/or recurring...
[freeside.git] / httemplate / elements / header-full.html
index b459a11..5a5db96 100644 (file)
@@ -44,15 +44,20 @@ Example:
     %>
 
 %   unless ( $no_jquery ) {
-      <link rel="stylesheet" href="<% $fsurl %>elements/jquery-ui.min.css">
-      <SCRIPT SRC="<% $fsurl %>elements/jquery.js"></SCRIPT>
+      <link rel="stylesheet" href="<% $fsurl %>elements/jquery-ui-1.12.1.min.css">
+      <SCRIPT SRC="<% $fsurl %>elements/jquery-3.3.1.js"></SCRIPT>
       <SCRIPT SRC="<% $fsurl %>elements/jquery-migrate-3.0.1.min.js"></SCRIPT>
-      <SCRIPT SRC="<% $fsurl %>elements/jquery-ui.min.js"></SCRIPT>
-      <SCRIPT SRC="<% $fsurl %>elements/jquery.validate.min.js"></SCRIPT>
+      <SCRIPT SRC="<% $fsurl %>elements/jquery-ui-1.12.1.min.js"></SCRIPT>
+      <SCRIPT SRC="<% $fsurl %>elements/jquery.validate-1.17.0.min.js"></SCRIPT>
 %     if ( $FS::CurrentUser::CurrentUser->option('printtofit') ) {
       <SCRIPT SRC="<% $fsurl %>elements/printtofit.js"></SCRIPT>
 %     }
 %   }
+%   if ( $include_selectize ) {
+      <script src="<% $fsurl %>elements/selectize/selectize-0.12.6.min.js"></script>
+      <link href="<% $fsurl %>elements/selectize/selectize-0.12.6.css" type="text/css" rel="stylesheet">
+      <link href="<% $fsurl %>elements/selectize/selectize-freeside.css?v=<% $FS::VERSION %>" type="text/css" rel="stylesheet">
+% }
     <% include('init_overlib.html') |n %>
     <% include('rs_init_object.html') |n %>
     <script type="text/javascript" src="<% $fsurl %>elements/topreload.js"></script>
@@ -95,7 +100,7 @@ Example:
 
     <TABLE WIDTH="100%" CELLSPACING=0 CELLPADDING=0>
 
-<link href="<%$fsurl%>elements/freeside-menu.css" type="text/css" rel="stylesheet">
+<link href="<%$fsurl%>elements/freeside-menu.css?v=<% $FS::VERSION %>" type="text/css" rel="stylesheet">
 
 % if ( $menu_position eq 'top' ) {
 
@@ -199,8 +204,10 @@ Example:
 % 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 %><% $status_image{$type} %>"> <% $message |h %></TD>
       </TR></TABLE>
 %   }
     <script src="<% $fsurl %>elements/js.cookie.js"></script>
@@ -221,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;
@@ -233,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.
@@ -263,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>