summaryrefslogtreecommitdiff
path: root/src/dashboard/static/js/firmware_version.js
blob: e050f579c4264ce9dc202f7524b894fb93cff5bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Setup dxGrid with data from Django
function FirmwareVersionGrid(firmware_versions) {
    $("#FirmwareGridContainer").dxDataGrid({
        dataSource: firmware_versions,
        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: "id",
                dataType: "integer",
                caption: "Server ID"
            },
            {
                dataField: "oam_hostname",
                dataType: "string",
                caption: "OAM Hostname"
            },
            {
                dataField: "ilo_host_address",
                dataType: "string",
                caption: "ilo Host Address"
            },
            {
                dataField: "intel_nic_firmware_version",
                dataType: "string",
                caption: "Firmware Version"
            },
            {
                dataField: "date_completed",
                dataType: "datetime",
                format: "M/d/yyyy, HH:mm",
                caption: "Date Completed"
            },
            {
                dataField: "date_last_failed",
                dataType: "datetime",
                format: "M/d/yyyy, HH:mm",
                caption: "Last failed on"
            }
        ]
    });
};