From 0b04912f8d495ea836d565f3536b59d030225cfa Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Sat, 20 Oct 2018 21:22:49 +0200 Subject: luci-app-openvpn: add ovpn upload support & more * add the ability to upload ovpn files directly, incl. appropriate uci entry in openvpn config * add the ability to edit ovpn files directly ('file' mode), beside the 'basic' and 'advanced' modes for normal setups * client side checks to validate instance name & template selection, incl. online error reporting * automatically remove non-ascii characters & windows line endings from transfered ovpn file * change from after_commit to after_apply hook * remove misleading default values for Port & Protocol in Overview Signed-off-by: Dirk Brenken --- .../luasrc/view/openvpn/cbi-select-input-add.htm | 120 +++++++++++++++++++-- 1 file changed, 110 insertions(+), 10 deletions(-) (limited to 'applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm') diff --git a/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm b/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm index 0166de778e..09da2eb22d 100644 --- a/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm +++ b/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm @@ -1,11 +1,111 @@ -
- <% if self.invalid_cts then -%>
<% end %> - - - - <% if self.invalid_cts then %>
<%:Invalid%>
<% end %> + + + +<%+openvpn/ovpn_css%> + +
+
+

<%:Template based configuration%>

+
+
+ +
+
+ +
+
+
+
+
+

<%:OVPN configuration file upload%>

+
+
+ +
+
+ +
+
+ +
+
+
+
+ +
-- cgit v1.2.3