X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=f5cead575f5e416c5d58af46d587f6df1b9fd6f5;hb=c082dd1a35a2e25b97f28ee137ec2c5b3b8052ca;hp=5f2166320055cb8366025b5316be79d5dcacae0c;hpb=cc0c6be1aa795f85d05f15a3e8568fcef2bbd380;p=freeside.git
diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi
index 5f2166320..f5cead575 100644
--- a/httemplate/config/config-view.cgi
+++ b/httemplate/config/config-view.cgi
@@ -1,12 +1,14 @@
<% include("/elements/header.html",
$title,
menubar(
- 'Main Menu' => $p,
'View all agents' => $p.'browse/agent.cgi',
)
)
%>
+Click on a configuration value to change it.
+
+
@@ -38,20 +40,31 @@
% }
- <% table("#cccccc", 2) %>
+
<% ucfirst($section || 'unclassified') %> configuration options
|
% foreach my $i (grep $_->section eq $section, @config_items) {
+% my @types = ref($i->type) ? @{$i->type} : ($i->type);
+% my( $width, $height ) = ( 522, 336 );
+% if ( grep $_ eq 'textarea', @types ) {
+% #800x600
+% $width = 763;
+% $height = 408;
+% #1024x768
+% #$width =
+% #$height =
+% }
-
- <% $i->key %> - <% $i->description %>
- |
+
+%# <% $i->key %> - <% $i->description %>
+ <% $i->key %>: <% $i->description %>
+ |
-% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) {
+% foreach my $type (@types) {
% my $n = 0;
% if ( $type eq '' ) {
@@ -72,9 +85,13 @@
-
-<% 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' ) {
@@ -114,15 +131,16 @@
|