Updating device listing UI - EMM

revert-dabc3590
dilanua 8 years ago
parent d25779e335
commit c4c2df3723

@ -72,23 +72,7 @@
{{#zone "content"}} {{#zone "content"}}
{{#if permissions.VIEW_DEVICES}} {{#if permissions.VIEW_DEVICES}}
<div id="loading-content" class="col-centered"> <div id="device-table" class="hidden">
<i class="fw fw-settings fw-spin fw-2x"></i>
&nbsp;&nbsp;&nbsp;
Loading devices . . .
<br>
</div>
<div id="device-listing-status" class="raw hidden">
<ul style="list-style-type: none;">
<li class="message message-info">
<h4>
<i class="icon fw fw-info"></i>
<a id="device-listing-status-msg"></a>
</h4>
</li>
</ul>
</div>
<div id="device-table">
<table class="table table-striped table-hover list-table display responsive nowrap data-table grid-view" <table class="table table-striped table-hover list-table display responsive nowrap data-table grid-view"
id="device-grid"> id="device-grid">
<thead> <thead>
@ -138,21 +122,12 @@
</div> </div>
<div id="no-device-view" class="ast-container list-view hidden"> <div id="no-device-view" class="ast-container list-view hidden">
<div class="ctrl-info-panel col-centered text-center wr-login"> <div class="ctrl-info-panel col-centered text-center wr-login">
<h2>You do not have any device enrolled at the moment.</h2> <h3 class="text-muted">You do not have any enrolled device at the moment</h3>
<p class="text-center"> <h3 class="text-center">
<a href="javascript:toggleEnrollment()" class="wr-btn"> <a href="javascript:toggleEnrollment()" class="btn btn-primary">
<span class="fw-stack"> Add New Device
<i class="fw fw-ring fw-stack-2x"></i>
<i class="fw fw-mobile fw-stack-1x"></i>
<span class="fw-stack fw-move-right fw-move-bottom">
<i class="fw fw-ring fw-stack-2x"></i>
<i class="fw fw-circle fw-stack-2x fw-stroke text-info"></i>
<i class="fw fw-add fw-stack-1x fw-inverse"></i>
</span>
</span>
&nbsp;&nbsp;Enroll New Device
</a> </a>
</p> </h3>
</div> </div>
</div> </div>
{{else}} {{else}}

@ -210,14 +210,14 @@ function loadDevices() {
*/ */
//var assetContainer = "#ast-container"; //var assetContainer = "#ast-container";
function openCollapsedNav(){ //function openCollapsedNav(){
$('.wr-hidden-nav-toggle-btn').addClass('active'); // $('.wr-hidden-nav-toggle-btn').addClass('active');
$('#hiddenNav').slideToggle('slideDown', function(){ // $('#hiddenNav').slideToggle('slideDown', function(){
if($(this).css('display') == 'none'){ // if($(this).css('display') == 'none'){
$('.wr-hidden-nav-toggle-btn').removeClass('active'); // $('.wr-hidden-nav-toggle-btn').removeClass('active');
} // }
}); // });
} //}
function initPage() { function initPage() {
var currentUser = $("#device-listing").data("currentUser"); var currentUser = $("#device-listing").data("currentUser");
@ -230,13 +230,13 @@ function initPage() {
data = JSON.parse(data); data = JSON.parse(data);
if (data["count"] > 0) { if (data["count"] > 0) {
$(".bulk-action-row").removeClass('hidden'); $(".bulk-action-row").removeClass('hidden');
$("#device-table").removeClass('hidden');
loadDevices(); loadDevices();
} else { } else {
$("#loading-content").remove();
$("#device-table").remove();
$("#no-device-view").removeClass('hidden');
$("#advanced-search-btn").addClass('hidden');
$("#enroll-btn").addClass('hidden'); $("#enroll-btn").addClass('hidden');
$("#advanced-search-btn").addClass('hidden');
$("#device-table").addClass('hidden');
$("#no-device-view").removeClass('hidden');
} }
} }
}, function () { }, function () {

Loading…
Cancel
Save