From d1267da4e032dd051a4859fb644b94c58e13d0e1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 9 Apr 2024 18:25:47 +0200 Subject: [PATCH] ovpnmain.cgi: Redesign the roadwarrior section Signed-off-by: Michael Tremer --- html/cgi-bin/ovpnmain.cgi | 65 ++++++++++++------- html/html/themes/ipfire/include/css/style.css | 3 + 2 files changed, 44 insertions(+), 24 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 33c3138cf..16bb3c01c 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -5234,34 +5234,51 @@ END }); print < -
- $Lang::tr{'enabled'} - + + + + + + - - - - - + + + + + + + + + + + + + - - + + + +
+ $Lang::tr{'enabled'} + + +

$Lang::tr{'net config'}:

+ $Lang::tr{'local vpn hostname/ip'} + + +
+ $Lang::tr{'ovpn subnet'} + + +
$Lang::tr{'local vpn hostname/ip'}:
$Lang::tr{'ovpn subnet'}
+ + + + +
+
END -; - print ""; - print ""; - print ""; - if (( -e "${General::swroot}/ovpn/ca/cacert.pem" && - -e "${General::swroot}/ovpn/certs/servercert.pem" && - -e "${General::swroot}/ovpn/certs/serverkey.pem") && - ($cgiparams{'ENABLED'} eq 'on')) { - print ""; - } else { - print ""; - } - print ""; &Header::closebox(); if ( -f "${General::swroot}/ovpn/ca/cacert.pem" ) { diff --git a/html/html/themes/ipfire/include/css/style.css b/html/html/themes/ipfire/include/css/style.css index 0e42f25f3..10997d2b1 100644 --- a/html/html/themes/ipfire/include/css/style.css +++ b/html/html/themes/ipfire/include/css/style.css @@ -396,10 +396,13 @@ table.form tr.action td { text-align: right; } +<<<<<<< HEAD table.form tr.action td form { display: inline; } +======= +>>>>>>> f3e0bbd58 (ovpnmain.cgi: Redesign the roadwarrior section) .tbl { width: 100%; } -- 2.39.5