X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=f5cead575f5e416c5d58af46d587f6df1b9fd6f5;hb=0a51e6fbd8b75f758ee9dc13d762fb01d657ad66;hp=bca1f160356c1c0411a8df18d09e383dbf5e1e82;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git
diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi
index bca1f1603..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 @@
% }
- <% include('/elements/table.html', '#cccccc' ) %>
+
<% 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' ) {
|