From: ivan Date: Mon, 31 Mar 2008 21:45:00 +0000 (+0000) Subject: move config edit popup to elements/popup_link.html X-Git-Tag: root_of_webpay_support~780 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=4026c3c89e0c73b261e071508b863479aaf12628 move config edit popup to elements/popup_link.html --- diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index f5cead575..b769e0813 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -59,9 +59,16 @@ 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 %> % foreach my $type (@types) { diff --git a/httemplate/elements/popup_link.html b/httemplate/elements/popup_link.html index 0915bfa68..a444ad125 100644 --- a/httemplate/elements/popup_link.html +++ b/httemplate/elements/popup_link.html @@ -18,11 +18,15 @@ Example: 'width' => '540', 'color' => '#ff0000', 'closetext' => 'Go Away', # the value '' removes the link + 'aname' => "target", # link NAME= value, useful for #targets } ) % if ($params->{'action'} && $label) { -<% $label %>\ +{'aname'} ? 'NAME="'. $params->{'aname'}. '"' : '' %> +><% $label %>\ % } <%init>