From d2d87f2ca06349f63d025e12dafda1b910956e40 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 7 Jan 2014 17:50:44 +0100 Subject: [PATCH] IPsec: Make connection configuration more pleasant for the eye. --- html/cgi-bin/vpnmain.cgi | 64 +++++++++++++++++++++++++--------------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index b3e24ba0c..af68d50a2 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -1948,19 +1948,23 @@ END ; if ($cgiparams{'KEY'}) { print ""; + print ""; print ""; } - &Header::openbox('100%', 'left', "$Lang::tr{'connection'}:"); + &Header::openbox('100%', 'left', "$Lang::tr{'connection'}: $cgiparams{'NAME'}"); print ""; - print ""; - if ($cgiparams{'KEY'}) { - print ""; - } else { - print ""; + if (!$cgiparams{'KEY'}) { + print < + + + + +EOF } - print ""; - print ''; my $disabled; my $blob; @@ -1971,29 +1975,41 @@ END print < - - + + + + + + + - - + - - + + + + - - - - - - - + + END ; -- 2.39.2
$Lang::tr{'name'}:$cgiparams{'NAME'}$Lang::tr{'name'}: + +
$Lang::tr{'enabled'}

$Lang::tr{'remote host/ip'}: $blob - + $Lang::tr{'enabled'} + + $Lang::tr{'local subnet'} + +
$Lang::tr{'remote host/ip'}: $blob + $Lang::tr{'remote subnet'} - + $Lang::tr{'remote subnet'} +
$Lang::tr{'local subnet'} - + $Lang::tr{'vpn local id'}: + + $Lang::tr{'vpn remote id'}: +

$Lang::tr{'vpn local id'}:
($Lang::tr{'eg'} @xy.example.com)
$Lang::tr{'vpn remote id'}:
$Lang::tr{'remark title'} *$Lang::tr{'remark title'} * + +