X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=b7e6f6797affd79a6acc6c74a5ffad35af61f58d;hb=0f11d8bc92f250b608a0ddcada330bed9b9d4c7d;hp=f5cead575f5e416c5d58af46d587f6df1b9fd6f5;hpb=5e05724a635a22776f1b973f5d7e77989da4e048;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index f5cead575..b7e6f6797 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -9,16 +9,12 @@ Click on a configuration value to change it.

- - - - +<% include('/elements/init_overlib.html') %> % if ($FS::UID::use_confcompat) { - CONFIGURATION NOT STORED IN DATABASE -- USING COMPATIBILITY MODE

%} -% + % foreach my $section ( qw(required billing username password UI session % shell BIND % ), @@ -59,19 +55,28 @@ Click on a configuration value to change it. % } - -%# <% $i->key %> - <% $i->description %> - <% $i->key %>: <% $i->description %> + <% include('/elements/popup_link.html', + 'action' => 'config.cgi?key='. $i->key. + ';agentnum='. $agentnum, + 'width' => $width, + 'height' => $height, + 'actionlabel' => 'Enter configuration value', + 'label' => ''. $i->key. '', + 'aname' => $i->key, + ) + %>: <% $i->description %> + +% my $n = 0; % foreach my $type (@types) { -% my $n = 0; -% if ( $type eq '' ) { + +% if ( $type eq '' ) { -% } elsif ( $type eq 'binary' ) { +% } elsif ( $type eq 'binary' ) { <% $conf->exists($i->key, $agentnum) @@ -79,12 +84,13 @@ Click on a configuration value to change it. : 'empty' %> -% } elsif ( $type eq 'textarea' -% || $type eq 'editlist' -% || $type eq 'selectmultiple' ) { + +% } elsif ( $type eq 'textarea' +% || $type eq 'editlist' +% || $type eq 'selectmultiple' ) { - -% } elsif ( $type eq 'checkbox' ) { +% } elsif ( $type eq 'checkbox' ) { - + -% } elsif ( $type eq 'text' || $type eq 'select' ) { +% } elsif ( $type eq 'text' || $type eq 'select' ) { - -% } elsif ( $type eq 'select-sub' ) { +% } elsif ( $type eq 'select-sub' ) { - -% } else { +% } else { +% } +% $n++; % } -% $n++; }
no type
+
 <% encode_entities(join("\n",
      map { length($_) > 88 ? substr($_,0,88).'...' : $_ }
@@ -94,32 +100,33 @@ Click on a configuration value to change it.
 
YES' : 'ff0000">NO' %>YES' : 'ff0000">NO' %>
+ <% $conf->exists($i->key, $agentnum) ? $conf->config($i->key, $agentnum) : '' %>
+ <% $conf->config($i->key, $agentnum) %>: <% &{ $i->option_sub }( $conf->config($i->key, $agentnum) ) %>
unknown type <% $type %>