From 6c487645f1d3feeb6abbdaf4cee3f53c4f018d55 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 7 Oct 2024 20:56:18 +0500 Subject: [PATCH] add button to access csf native ui --- firewall/templates/firewall/csf.html | 398 ++++++++++++++------------- 1 file changed, 213 insertions(+), 185 deletions(-) diff --git a/firewall/templates/firewall/csf.html b/firewall/templates/firewall/csf.html index 1fd625343..1d65e4436 100755 --- a/firewall/templates/firewall/csf.html +++ b/firewall/templates/firewall/csf.html @@ -3,212 +3,240 @@ {% block title %}{% trans "CSF (ConfigServer Security and Firewall) - CyberPanel" %}{% endblock %} {% block content %} -{% load static %} -{% get_current_language as LANGUAGE_CODE %} - + {% load static %} + {% get_current_language as LANGUAGE_CODE %} + -
-
-

{% trans "CSF (ConfigServer Security and Firewall)!" %}

-

{% trans "On this page you can configure CSF (ConfigServer Security and Firewall) settings." %}

-
- -{% if csfInstalled == 0 %} -
-
-

- {% trans "CSF" %} -

- -
-
- -
-

{% trans "CSF is not installed " %} -

- -
- - - -
- -
- -
-

{% trans "Failed to start installation, Error message: " %} {$ errorMessage $}

-
- -
-

{% trans "Could not connect. Please refresh this page." %}

-
- -
-

{% trans "Installation failed." %} {$ errorMessage $}

-
- -
-

{% trans "CSF successfully installed, refreshing page in 3 seconds.." %}

-
-
-
- - -
- -
-
-
-

{% trans "In winter we must protect each other.." %}

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

{% trans "CSF (ConfigServer Security and Firewall)!" %}

+

{% trans "On this page you can configure CSF (ConfigServer Security and Firewall) settings." %}

-
-{% else %} -
-
-

- {% trans 'CSF' %} - -

-
-
+ {% if csfInstalled == 0 %} +
+
+

+ {% trans "CSF" %} +

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

{% trans "Failed to start installation, Error message: " %} {$ errorMessage + $}

+
+ +
+

{% trans "Could not connect. Please refresh this page." %}

+
+ +
+

{% trans "Installation failed." %} {$ errorMessage $}

+
+ +
+

{% trans "CSF successfully installed, refreshing page in 3 seconds.." %}

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

{% trans "In winter we must protect each other.." %} +

+
+
+ +
+
+
+ + +
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- - - - - +
+
- - {% endblock %}