diff --git a/docs/img/WORKFLOWS/workflows.png b/docs/img/WORKFLOWS/workflows.png index df1bab6c..ad86ac70 100755 Binary files a/docs/img/WORKFLOWS/workflows.png and b/docs/img/WORKFLOWS/workflows.png differ diff --git a/front/css/app.css b/front/css/app.css index 68057e05..9558c7a1 100755 --- a/front/css/app.css +++ b/front/css/app.css @@ -1517,10 +1517,9 @@ input[readonly] { /* AdminLTE overrides */ #networkTree .box { - border-top:1px; + /* border-top:1px; */ border-top-color:grey; padding:0px; - padding-top:6px; margin:0px; align-items:center; border-radius:20px; @@ -1528,7 +1527,7 @@ input[readonly] { /* display:flex; */ flex-direction:column; justify-content:center; - display: inline-grid; + /* display: inline-grid; */ } .helpIcon { @@ -1577,17 +1576,16 @@ input[readonly] { width: auto; } + #networkTree .netCollapse { - display: block; position: absolute; - margin-left: 170px; - font-size: large; - left: -15px; + right: 0; + margin-right: -3px; } #networkTree .highlightedNode { - border: solid; + /* border: solid; */ border-color:cyan; } #networkTree .netStatus-Off-line i, @@ -1598,7 +1596,6 @@ input[readonly] { .spanNetworkTree { display: inline-block; - /* width: 135px; */ white-space: nowrap; overflow: hidden !important; text-overflow: ellipsis; @@ -1614,6 +1611,11 @@ input[readonly] { /* margin-left: 0.2em; */ } +.networkTable .networkNodeTabHeaders a { + display: block; + height: 3em; +} + .networkTable .icon { /* padding-left:2em; */ width:2em; @@ -1632,7 +1634,6 @@ input[readonly] { .networkNodeTabHeaders { - max-width: 200px; text-overflow: ellipsis; overflow: hidden; text-wrap: nowrap; @@ -1710,13 +1711,6 @@ input[readonly] { padding-top: 20px; } - -.login-page .login-custom -{ - width:480px; - -} - /*Hidden special button*/ @media (max-width: 365px) { @@ -1975,6 +1969,7 @@ input[readonly] { right: 0.1em; } + .workflows .remove-condition { z-index: 1; diff --git a/front/devices.php b/front/devices.php index 29b29ef8..a7b07aa7 100755 --- a/front/devices.php +++ b/front/devices.php @@ -74,10 +74,10 @@
-
+

-
+
diff --git a/front/index.php b/front/index.php index 291d3277..b9be1d13 100755 --- a/front/index.php +++ b/front/index.php @@ -92,10 +92,8 @@ if (isset ($_SESSION["login"]) == FALSE || $_SESSION["login"] != 1) - - - - + + @@ -112,7 +110,7 @@ switch ($UI_THEME) { ?> - + + ${collapseExpandHtml}`; }, mainAxisNodeSpacing: 'auto', - secondaryAxisNodeSpacing: 0.3, - nodeHeight: nodeHeight.toString(), + // secondaryAxisNodeSpacing: 0.3, + nodeHeight: nodeHeightPx, + nodeWidth: nodeWidthPx, marginTop: '5', isHorizontal : true, hasZoom: true, @@ -811,8 +831,8 @@ function initTree(myHierarchy) hasFlatData: false, relationnalField: "children", linkWidth: (nodeData) => 3, - linkColor: (nodeData) => "#ffcc80", - onNodeClick: (nodeData) => handleNodeClick(nodeData), + linkColor: (nodeData) => "#ffcc80" + // onNodeClick: (nodeData) => handleNodeClick(nodeData), }); console.log(deviceListGlobal); diff --git a/front/php/templates/footer.php b/front/php/templates/footer.php index a6402881..16169163 100755 --- a/front/php/templates/footer.php +++ b/front/php/templates/footer.php @@ -30,7 +30,7 @@
| | - | + | | | : | Version: diff --git a/front/php/templates/header.php b/front/php/templates/header.php index 889124d4..5305752a 100755 --- a/front/php/templates/header.php +++ b/front/php/templates/header.php @@ -59,10 +59,7 @@ - - - - + @@ -421,20 +418,15 @@ -
-
+
-
+
-
+
@@ -108,6 +108,8 @@ function renderWorkflows() { // Generate UI for a single workflow function generateWorkflowUI(wf, wfIndex) { + let wfEnabled = (wf?.enabled ?? "No") == "Yes"; + let $wfContainer = $("
", { class: "workflow-card panel col-sm-12 col-sx-12", id: `wf-${wfIndex}-container` @@ -121,6 +123,11 @@ function generateWorkflowUI(wf, wfIndex) { } ) + let $wfEnabledIcon = $("", { + class: `alignRight fa-regular ${wfEnabled ? "fa-dot-circle" : "fa-circle" }` + }); + + let $wfHeaderLink = $("", { "class": "pointer ", @@ -137,7 +144,7 @@ function generateWorkflowUI(wf, wfIndex) { } ).text(wf.name) - $wfContainer.append($wfHeaderLink.append($wfLinkWrap.append($wfHeaderHeading))); + $wfContainer.append($wfHeaderLink.append($wfLinkWrap.append($wfHeaderHeading.append($wfEnabledIcon)))); // Collapsible panel start @@ -157,7 +164,7 @@ function generateWorkflowUI(wf, wfIndex) { `[${wfIndex}].enabled`, getString("WF_Enabled"), wfEnabledOptions, - wf?.enabled ?? "No", + wfEnabled ? "Yes" :"No", `wf-${wfIndex}-enabled` ); @@ -210,9 +217,10 @@ function generateWorkflowUI(wf, wfIndex) { class: "fa-solid fa-bolt bckg-icon-2-line" }); + $triggerSection.append($triggerIcon); $triggerSection.append($triggerTypeDropdown); $triggerSection.append($eventTypeDropdown); - $triggerSection.append($triggerIcon); + $wfCollapsiblePanel.append($triggerSection); // Conditions @@ -323,11 +331,13 @@ function generateWorkflowUI(wf, wfIndex) { $actionRemoveButtonWrap.append($actionRemoveButton); let $actionIcon = $("", { - class: `fa-solid fa-person-running fa-flip-horizontal bckg-icon-${numberOfLines}-line ` - }); + class: `fa-solid fa-person-running fa-flip-horizontal bckg-icon-${numberOfLines}-line ` + }); + + $actionEl.prepend($actionIcon) $actionElWrap.append($actionEl) - $actionElWrap.append($actionIcon) + $actionElWrap.append($actionRemoveButtonWrap) $actionsContainer.append($actionElWrap);