summaryrefslogtreecommitdiff
path: root/httemplate/pref/pref.html
diff options
context:
space:
mode:
authorivan <ivan>2009-06-16 03:29:26 +0000
committerivan <ivan>2009-06-16 03:29:26 +0000
commit8588f3c0bfbcbeb58dd25a57b5ea375cec00279a (patch)
treeea03db9ff9d411800aa04813c995ddccfdaa7544 /httemplate/pref/pref.html
parentc7d6edd92281d39e6eb59656a5b79faf8454973d (diff)
basic customer view tabs, RT#5586
Diffstat (limited to 'httemplate/pref/pref.html')
-rw-r--r--httemplate/pref/pref.html32
1 files changed, 31 insertions, 1 deletions
diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html
index 1f4edf2cb..81800bf26 100644
--- a/httemplate/pref/pref.html
+++ b/httemplate/pref/pref.html
@@ -31,7 +31,7 @@ Interface
<% ntable("#cccccc",2) %>
<TR>
- <TH>Menu location: </TH>
+ <TH ALIGN="right">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' : ''%>> 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' : ''%>> Top <BR>
@@ -39,6 +39,21 @@ Interface
<TD><IMG NAME="menu_example" SRC="../images/menu-<% $menu_position %>-example.png"></TD>
</TR>
+ <TR>
+ <TH ALIGN="right">Default customer view: </TD>
+ <TD COLSPAN=2>
+ <SELECT NAME="default_customer_view">
+% foreach my $view ( keys %customer_views ) {
+% my $selected =
+% $customer_views{$view} eq $curuser->option('default_customer_view')
+% ? 'SELECTED'
+% : '';
+ <OPTION VALUE="<%$customer_views{$view}%>" <%$selected%>><%$view%></OPTION>
+% }
+ </SELECT>
+ </TD>
+ </TR>
+
</TABLE>
<BR>
@@ -109,6 +124,21 @@ Vonage integration (see <a href="https://secure.click2callu.com/">Click2Call</a>
<INPUT TYPE="submit" VALUE="Update preferences">
<% include('/elements/footer.html') %>
+<%once>
+
+ #false laziness w/view/cust_main.cgi
+
+ tie my %customer_views, 'Tie::IxHash',
+ 'Basics' => 'basics',
+ 'Notes' => 'notes', #notes and files?
+ 'Tickets' => 'tickets',
+ 'Packages' => 'packages',
+ 'Payment History' => 'payment_history',
+ #'Change History' => '',
+ 'Jumbo' => 'jumbo',
+ ;
+
+</%once>
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;