From f3e0bbd58feb5f39159171480ba33b36bdcacd0d 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 | 24 +++++++ 2 files changed, 65 insertions(+), 24 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 62dc1f76a..93775ac71 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -5241,34 +5241,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 c373a9411..81cba833c 100644 --- a/html/html/themes/ipfire/include/css/style.css +++ b/html/html/themes/ipfire/include/css/style.css @@ -315,6 +315,30 @@ table { border-spacing: 0; } +/* + Form Tables +*/ +table.form { + width: 100%; + + margin-top: 1rem; + margin-bottom: 1rem; +} + +table.form:last-child { + margin-bottom: 0; +} + +table.form tr td:first-child { + width: 30%; +} + +table.form tr.action td { + padding-top: 1rem; + + text-align: right; +} + .tbl { width: 100%; } -- 2.39.5