-
- <% $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 %>
+ |
-% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) {
-% my $n = 0;
-% if ( $type eq '' ) {
+
+% my $n = 0;
+% foreach my $type (@types) {
+
+% if ( $type eq '' ) {
no type |
-% } elsif ( $type eq 'binary' ) {
+% } elsif ( $type eq 'binary' ) {
<% $conf->exists($i->key, $agentnum)
@@ -66,43 +84,49 @@
: 'empty'
%>
-% } elsif ( $type eq 'textarea'
-% || $type eq 'editlist'
-% || $type eq 'selectmultiple' ) {
+
+% } elsif ( $type eq 'textarea'
+% || $type eq 'editlist'
+% || $type eq 'selectmultiple' ) {
-
-
-<% encode_entities(join("\n", $conf->config($i->key, $agentnum) ) ) %>
-
+ |
+
+<% encode_entities(join("\n",
+ map { length($_) > 88 ? substr($_,0,88).'...' : $_ }
+ $conf->config($i->key, $agentnum)
+ ) )
+%>
+
|
-% } elsif ( $type eq 'checkbox' ) {
+% } elsif ( $type eq 'checkbox' ) {
- YES' : 'ff0000">NO' %> |
+ YES' : 'ff0000">NO' %> |
-% } elsif ( $type eq 'text' || $type eq 'select' ) {
+% } elsif ( $type eq 'text' || $type eq 'select' ) {
-
+ |
<% $conf->exists($i->key, $agentnum) ? $conf->config($i->key, $agentnum) : '' %>
|
-% } elsif ( $type eq 'select-sub' ) {
+% } elsif ( $type eq 'select-sub' ) {
-
+ |
<% $conf->config($i->key, $agentnum) %>:
<% &{ $i->option_sub }( $conf->config($i->key, $agentnum) ) %>
|
-% } else {
+% } else {
unknown type <% $type %>
|
+% }
+% $n++;
% }
-% $n++; }
|
@@ -114,15 +138,16 @@