diff options
Diffstat (limited to 'httemplate/view/elements')
-rw-r--r-- | httemplate/view/elements/svc_export_settings.html | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/httemplate/view/elements/svc_export_settings.html b/httemplate/view/elements/svc_export_settings.html index 026280546..a3c09110f 100644 --- a/httemplate/view/elements/svc_export_settings.html +++ b/httemplate/view/elements/svc_export_settings.html @@ -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; |