diff options
author | ivan <ivan> | 2010-02-21 03:16:02 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-02-21 03:16:02 +0000 |
commit | 259eacca8b815b2bf159e7ee14385e2ac28ed9ee (patch) | |
tree | de35289c365cc1e3b0c47a8193454f22e2ec25c7 /httemplate/view/elements | |
parent | d2e5d9d1f65fc94eb87eae45b675645e92087f49 (diff) |
communigate, RT#7083
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; |