diff --git a/app/js/custom.js b/app/js/custom.js index 4ba0436b..ff0b303f 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -307,7 +307,6 @@ $('#ovpn-confirm-activate').on('shown.bs.modal', function (e) { }); $('#ovpn-userpw,#ovpn-certs').on('click', function (e) { -// e.stopPropagation(); if (this.id == 'ovpn-userpw') { $('#PanelCerts').hide(); $('#PanelUserPW').show(); @@ -317,6 +316,16 @@ $('#ovpn-userpw,#ovpn-certs').on('click', function (e) { } }); +$('#wg-upload,#wg-manual').on('click', function (e) { + if (this.id == 'wg-upload') { + $('#PanelManual').hide(); + $('#PanelUpload').show(); + } else if (this.id == 'wg-manual') { + $('#PanelUpload').hide(); + $('#PanelManual').show(); + } +}); + // Add the following code if you want the name of the file appear on select $(".custom-file-input").on("change", function() { var fileName = $(this).val().split("\\").pop(); diff --git a/templates/wg/general.php b/templates/wg/general.php index 06d09811..86eefe75 100644 --- a/templates/wg/general.php +++ b/templates/wg/general.php @@ -9,47 +9,77 @@

- - wg0.conf to the WireGuard configuration.") ?> +

+
+
+ + +
+
+ + +
-
-
- -
-
- -
- - +
+
+
+
+
+

+ wg0.conf WireGuard configuration on this device.") ?> +

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

+ .conf file to this device.") ?> +

-
-
- -
-
- - -
-
- -
-
- - -
-
- -
-
- - -
-
- +
+
+
+
+ + +
+
+
+
+
+
- +