[freeside-commits] freeside/httemplate/pref pref.html, 1.10, 1.11 pref-process.html, 1.11, 1.12
Ivan,,,
ivan at wavetail.420.am
Mon Jun 15 20:29:28 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/pref
In directory wavetail.420.am:/tmp/cvs-serv23051/httemplate/pref
Modified Files:
pref.html pref-process.html
Log Message:
basic customer view tabs, RT#5586
Index: pref-process.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/pref/pref-process.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- pref-process.html 25 Mar 2009 09:36:34 -0000 1.11
+++ pref-process.html 16 Jun 2009 03:29:26 -0000 1.12
@@ -43,7 +43,7 @@
my %param = $access_user->options;
#XXX autogen
- my @paramlist = qw( menu_position
+ my @paramlist = qw( menu_position default_customer_view
email_address
vonage-fromnumber vonage-username vonage-password
show_pkgnum show_db_profile save_db_profile
Index: pref.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/pref/pref.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- pref.html 25 Mar 2009 09:36:02 -0000 1.10
+++ pref.html 16 Jun 2009 03:29:26 -0000 1.11
@@ -31,7 +31,7 @@
<% 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 @@
<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 @@
<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;
More information about the freeside-commits
mailing list