</TR>
<TR>
- <TH ALIGN="right">Default customer view: </TD>
+ <TH ALIGN="right">Default customer view: </TH>
<TD COLSPAN=2>
<SELECT NAME="default_customer_view">
% foreach my $view ( keys %customer_views ) {
</SELECT>
</TD>
</TR>
+
+ <TR>
+ <TH ALIGN="right" COLSPAN=1>Disable HTML editor for customer notes: </TH>
+ <TD ALIGN="left" COLSPAN=2>
+ <INPUT TYPE="checkbox" NAME="disable_html_editor" VALUE="1" <% $curuser->option('disable_html_editor') ? 'CHECKED' : '' %>>
+ </TD>
+ </TR>
</TABLE>
<BR>
<TH>Show internal package numbers: </TH>
<TD><INPUT TYPE="checkbox" NAME="show_pkgnum" VALUE="1" <% $curuser->option('show_pkgnum') ? 'CHECKED' : '' %>></TD>
</TR>
+ <TR>
+ <TH>Show config item counts: </TH>
+ <TD><INPUT TYPE="checkbox" NAME="show_confitem_counts" VALUE="1" <% $curuser->option('show_confitem_counts') ? 'CHECKED' : '' %>></TD>
+ </TR>
+ <TR>
+ <TH>Show export data on service view (when available): </TH>
+ <TD><INPUT TYPE="checkbox" NAME="export_getsettings" VALUE="1" <% $curuser->option('export_getsettings') ? 'CHECKED' : '' %>></TD>
+ </TR>
<TR>
<TH>Show database profiling (when available): </TH>
<TD><INPUT TYPE="checkbox" NAME="show_db_profile" VALUE="1" <% $curuser->option('show_db_profile') ? 'CHECKED' : '' %>></TD>
</TABLE>
<BR>
+SNOM integration
+<% ntable("#cccccc",2) %>
+
+ <TR>
+ <TH ALIGN="right">SNOM IP address</TH>
+ <TD><INPUT TYPE="text" NAME="snom-ip" VALUE="<% $curuser->option('snom-ip') %>"></TD>
+ </TR>
+
+ <TR>
+ <TH ALIGN="right">SNOM HTTP username (if necessary)</TH>
+ <TD><INPUT TYPE="text" NAME="snom-username" VALUE="<% $curuser->option('snom-username') %>"></TD>
+ </TR>
+
+ <TR>
+ <TH ALIGN="right">SNOM HTTP password (if necessary)</TH>
+ <TD><INPUT TYPE="password" NAME="snom-password" VALUE="<% $curuser->option('snom-password') %>"></TD>
+ </TR>
+
+</TABLE>
+<BR>
+
+OR<BR><BR>
Vonage integration (see <a href="https://secure.click2callu.com/">Click2Call</a>)
<% ntable("#cccccc",2) %>
<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;
+#false laziness w/view/cust_main.cgi and Conf.pm (cust_main-default_view)
+
+tie my %customer_views, 'Tie::IxHash',
+ 'Basics' => 'basics',
+ 'Notes' => 'notes', #notes and files?
+ 'Tickets' => 'tickets',
+ 'Packages' => 'packages',
+ 'Payment History' => 'payment_history',
+;
+$customer_views{'Change History'} = 'change_history'
+ if $curuser->access_right('View customer history');
+$customer_views{'Jumbo'} = 'jumbo';
+
# XSS via your own preferences? seems unlikely, but nice try anyway...
( $curuser->option('menu_position') || 'top' )
=~ /^(\w+)$/ or die "illegal menu_position";