hide the notify-tickets widget if there are no tickets, or if the user turns it off...
[freeside.git] / httemplate / pref / pref.html
index 724967d..f26d209 100644 (file)
@@ -6,8 +6,8 @@
 
 % if ( FS::Auth->auth_class->can('change_password') ) {
 
-    <% emt('Change password (leave blank for no change)') %>
-    <% ntable("#cccccc",2) %>
+    <FONT CLASS="fsinnerbox-title"><% emt('Change password (leave blank for no change)') %></FONT>
+    <TABLE CLASS="fsinnerbox">
 
       <TR>
         <TH ALIGN="right"><% emt("Current password:") %> </TH>
@@ -29,8 +29,8 @@
 
 % }
 
-<% emt("Interface") %>
-<% ntable("#cccccc",2) %>
+<FONT CLASS="fsinnerbox-title"><% emt("Interface") %></FONT>
+<TABLE CLASS="fsinnerbox">
 
   <TR>
     <TH ALIGN="right"><% emt("Locale:") %> </TH>
@@ -47,7 +47,7 @@
   </TR>
 
   <TR>
-    <TH ALIGN="right"><% emt("Menu location:") %> </TH>
+    <TH ALIGN="right" STYLE="vertical-align:top"><% emt("Menu location:") %> </TH>
     <TD>
       <INPUT TYPE="radio" NAME="menu_position" VALUE="left" onClick="document.images['menu_example'].src='../images/menu-left-example.png';" <% $menu_position eq 'left' ? ' CHECKED' : ''%>> <% emt("Left") %><BR>
       <INPUT TYPE="radio" NAME="menu_position" VALUE="top"onClick="document.images['menu_example'].src='../images/menu-top-example.png';" <% $menu_position eq 'top' ? ' CHECKED' : ''%>> <% emt("Top") %> <BR>
   </TR>
 
   <TR>
+    <TH ALIGN="right"><% emt('Hide notification of new ticket activity') %></TH>
+    <TD ALIGN="left">
+      <INPUT TYPE="checkbox" NAME="hide_notify_tickets" VALUE="1" <% $curuser->option('hide_notify_tickets') ? 'CHECKED' : '' %>>
+    </TD>
+  </TR>
+
+  <TR>
     <TH ALIGN="right"><% emt("How many recently-modified customers displayed on dashboard") %></TH>
     <TD ALIGN="left" COLSPAN=2>
       <INPUT TYPE="text" NAME="dashboard_customers" VALUE="<% $curuser->option('dashboard_customers') %>"></TD>
 <BR>
 
 
-<% emt("Email Address") %>
-<% ntable("#cccccc",2) %>
+<FONT CLASS="fsinnerbox-title"><% emt("Email Address") %></FONT>
+<TABLE CLASS="fsinnerbox">
 
   <TR>
     <TH><% emt("Email Address(es) (comma separated) ") %></TH>
 <BR>
 
 
-<% emt("Development") %>
-<% ntable("#cccccc",2) %>
+<FONT CLASS="fsinnerbox-title"><% emt("Development") %></FONT>
+<TABLE CLASS="fsinnerbox">
 
   <TR>
     <TH><% emt("Show customer package timestamps:") %> </TH>