|
|
@ -170,7 +170,7 @@ function loadDevices() {
|
|
|
|
class: 'fade-edge remove-padding-top',
|
|
|
|
class: 'fade-edge remove-padding-top',
|
|
|
|
data: 'user',
|
|
|
|
data: 'user',
|
|
|
|
render: function (user) {
|
|
|
|
render: function (user) {
|
|
|
|
return '<div><label class="label-bold">Owner : </label>' + user + '</div>';
|
|
|
|
return '<div><label class="label-bold">Owner : </label>' + user + '</div>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -180,33 +180,33 @@ function loadDevices() {
|
|
|
|
var html;
|
|
|
|
var html;
|
|
|
|
switch (status) {
|
|
|
|
switch (status) {
|
|
|
|
case 'ACTIVE' :
|
|
|
|
case 'ACTIVE' :
|
|
|
|
html = '<span><i class="fw fw-ok icon-success"></i> Active</span>';
|
|
|
|
html = '<span><i class="fw fw-ok icon-success"></i> Active</span>';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'INACTIVE' :
|
|
|
|
case 'UNREACHABLE' :
|
|
|
|
html = '<span><i class="fw fw-warning icon-warning"></i> Inactive</span>';
|
|
|
|
html = '<span><i class="fw fw-question-mark icon-warning"></i> Unreachable</span>';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'BLOCKED' :
|
|
|
|
case 'INACTIVE' :
|
|
|
|
html = '<span><i class="fw fw-remove icon-danger"></i> Blocked</span>';
|
|
|
|
html = '<span><i class="fw fw-warning icon-error"></i> Inactive</span>';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'REMOVED' :
|
|
|
|
case 'REMOVED' :
|
|
|
|
html = '<span><i class="fw fw-delete icon-danger"></i> Removed</span>';
|
|
|
|
html = '<span><i class="fw fw-delete icon-danger"></i> Removed</span>';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return '<div><label class="label-bold">Status : </label>' + html + '</div>';
|
|
|
|
return '<div><label class="label-bold">Status : </label>' + html + '</div>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
className: 'fade-edge remove-padding-top',
|
|
|
|
className: 'fade-edge remove-padding-top',
|
|
|
|
data: 'deviceType',
|
|
|
|
data: 'deviceType',
|
|
|
|
render: function (deviceType) {
|
|
|
|
render: function (deviceType) {
|
|
|
|
return '<div><label class="label-bold">Type : </label>' + deviceType + '</div>';
|
|
|
|
return '<div><label class="label-bold">Type : </label>' + deviceType + '</div>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
className: 'fade-edge remove-padding-top',
|
|
|
|
className: 'fade-edge remove-padding-top',
|
|
|
|
data: 'ownership',
|
|
|
|
data: 'ownership',
|
|
|
|
render: function (ownership) {
|
|
|
|
render: function (ownership) {
|
|
|
|
return '<div><label class="label-bold">Ownership : </label>' + ownership + '</div>';
|
|
|
|
return '<div><label class="label-bold">Ownership : </label>' + ownership + '</div>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
];
|
|
|
|
];
|
|
|
|