From: Michael Tremer Date: Tue, 7 Jan 2014 16:50:44 +0000 (+0100) Subject: IPsec: Make connection configuration more pleasant for the eye. X-Git-Tag: v2.15-beta1~59^2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2d87f2ca06349f63d025e12dafda1b910956e40;p=people%2Fms%2Fipfire-2.x.git IPsec: Make connection configuration more pleasant for the eye. --- diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index b3e24ba0cf..af68d50a2f 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 ;
$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'} * + +