[freeside-commits] freeside/httemplate/view/elements svc_export_settings.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Sat Feb 20 19:16:04 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/view/elements
In directory wavetail.420.am:/tmp/cvs-serv18024/httemplate/view/elements
Modified Files:
svc_export_settings.html
Log Message:
communigate, RT#7083
Index: svc_export_settings.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/elements/svc_export_settings.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- svc_export_settings.html 20 Feb 2010 22:31:32 -0000 1.1
+++ svc_export_settings.html 21 Feb 2010 03:16:02 -0000 1.2
@@ -1,26 +1,28 @@
-% my ( $settings, $defaults ) = $svc_x->export_getsettings;
-% if ( keys %$settings ) {
+% if ( $FS::CurrentUser::CurrentUser->option('export_getsettings') ) {
+
+% my ( $settings, $defaults ) = $svc_x->export_getsettings;
+% if ( keys %$settings ) {
%# XXX a way to label this "Communigate pro settings".. just a config maybe
- External settings
- <% ntable('#cccccc',2) %>
+ External settings
+ <% ntable('#cccccc',2) %>
-% foreach my $key ( keys %$settings ) {
- <TR>
- <TD ALIGN="right"><% $key |h %></TD>
- <TD BGCOLOR="<% $defaults->{$key} ? '#eeeeee' : '#ffffff' %>">
- <% $defaults->{$key} ? '<I>' : '<B>' %>
- <% $settings->{$key} |h %>
- <% $defaults->{$key} ? '</I>' : '</B>' %>
- </TD>
- </TR>
-% }
+% foreach my $key ( keys %$settings ) {
+ <TR>
+ <TD ALIGN="right"><% $key |h %></TD>
+ <TD BGCOLOR="<% $defaults->{$key} ? '#eeeeee' : '#ffffff' %>">
+ <% $defaults->{$key} ? '<I>' : '<B>' %>
+ <% $settings->{$key} |h %>
+ <% $defaults->{$key} ? '</I>' : '</B>' %>
+ </TD>
+ </TR>
+% }
- </TABLE>
- <BR>
+ </TABLE>
+ <BR>
+% }
% }
-
<%init>
my $svc_x = shift;
More information about the freeside-commits
mailing list