summaryrefslogtreecommitdiff
path: root/src/dashboard/static/js/orchestration_workflow.js
diff options
context:
space:
mode:
authorckonstanski <kostcarl@isu.edu>2026-07-30 18:17:14 -0600
committerckonstanski <kostcarl@isu.edu>2026-07-30 18:17:14 -0600
commit640ff61422bc0ee3966941b93d9889ddbbd38d77 (patch)
treeabf1c08f5d38ee53ec8b29dc4f425722517505e6 /src/dashboard/static/js/orchestration_workflow.js
parent22dae02a86c1fce71091bfa5289cf99abba1b217 (diff)
more filesHEADmaster
Diffstat (limited to 'src/dashboard/static/js/orchestration_workflow.js')
-rw-r--r--src/dashboard/static/js/orchestration_workflow.js55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/dashboard/static/js/orchestration_workflow.js b/src/dashboard/static/js/orchestration_workflow.js
new file mode 100644
index 0000000..b432cb9
--- /dev/null
+++ b/src/dashboard/static/js/orchestration_workflow.js
@@ -0,0 +1,55 @@
+// Setup dxGrid with data from Django
+function OrchestrationGrid(workflows) {
+ console.log(workflows)
+ $("#WorkflowGridContainer").dxDataGrid({
+ dataSource: workflows,
+ showColumnLines: false,
+ showRowLines: true,
+ rowAlternationEnabled: true,
+ columnAutoWidth: true,
+ showBorders: true,
+ searchPanel: {
+ visible: true,
+ width: 240,
+ placeholder: "Search..."
+ },
+ groupPanel: {
+ visible: true
+ },
+ paging: {
+ pageSize: 50
+ },
+ pager: {
+ showPageSizeSelector: true,
+ allowedPageSizes: [5, 10, 20],
+ showInfo: true
+ },
+ columns: [{
+ dataField: "pk",
+ dataType: "integer",
+ caption: "Cluster"
+ },
+ {
+ dataField: "fields.online",
+ dataType: "string",
+ caption: "Online"
+ },
+ {
+ dataField: "fields.bmc",
+ dataType: "boolean",
+ caption: "BMC"
+ },
+ {
+ dataField: "fields.wr_installed",
+ dataType: "boolean",
+ caption: "WR installed"
+ },
+ {
+ dataField: "fields.created_at",
+ dataType: "datetime",
+ format: "M/d/yyyy, HH:mm",
+ caption: "Date Updated"
+ }
+ ]
+ });
+}; \ No newline at end of file