adding ui changes to the cloud related uis

revert-70aa11f8
kamidu 8 years ago
parent 9ca552584a
commit 486e02fd71

@ -91,7 +91,8 @@
<div id="device_overview">
<div class="media-left col-lg-2">
<div class="icon">
<img src="/devicemgt/public/cdmf.page.groups/images/group-icon.png" style="background-color: #11375b; height: 152px;">
<img src="/devicemgt/public/cdmf.page.groups/images/group-icon.png"
style="background-color: #11375b; height: 152px;">
</div>
</div>
<div class="media-body asset-desc add-padding-left-5x">
@ -214,11 +215,11 @@
</thead>
<tbody id="ast-container">
<br class="c-both" />
<br class="c-both"/>
</tbody>
</table>
</div>
<br class="c-both" />
<br class="c-both"/>
<div id="content-filter-types" style="display: none">
<div class="sort-title">Sort By</div>
<div class="sort-options">
@ -236,13 +237,13 @@
<i class="fw fw-devices fw-3x"></i>
</h3>
<h3 class="text-muted">
You don't have any device
You don't have any
{{#if group}}
assigned to this group
devices assigned to this group. Let's add a device!
{{else}}
enrolled
enrolled devices. Let's enroll a device!
{{/if}}
at the moment.
</h3>
<h3>
{{#if group}}
@ -256,7 +257,7 @@
</a>
{{else}}
{{#if permissions.enroll}}
<!--suppress HtmlUnknownTarget -->
<!--suppress HtmlUnknownTarget -->
<a href="{{@app.context}}/device/enroll" class="btn-operations btn-default">
<span class="fw-stack">
<i class="fw fw-circle-outline fw-stack-2x"></i>
@ -427,7 +428,7 @@
<div class="row">
<div class="col-lg-5 col-md-6 col-centered">
<h3>Exception at backend. Try Later.</h3>
<br />
<br/>
<div class="buttons">
<a href="#" id="device-400-link" class="btn-operations">
Ok
@ -443,7 +444,7 @@
<div class="row">
<div class="col-lg-5 col-md-6 col-centered">
<h3>Operation not permitted.</h3>
<br />
<br/>
<div class="buttons">
<a href="#" id="device-403-link" class="btn-operations">
Ok
@ -458,9 +459,10 @@
<div class="modal-content">
<div class="row">
<div class="col-lg-5 col-md-6 col-centered">
<h3>You don't have any groups to add this device. Please add group
first.</h3>
<br />
<h3>
You don't have any device group to add this device. Let's add a new
device group!</h3>
<br/>
<div class="buttons">
<a href="{{@app.context}}/group/add" class="btn-operations">
Add New Group
@ -480,7 +482,7 @@
<div class="row">
<div class="col-lg-5 col-md-6 col-centered">
<h3>Device does not exist.</h3>
<br />
<br/>
<div class="buttons">
<a href="#" id="remove-device-409-link" class="btn-operations">
Ok

@ -65,7 +65,7 @@
{{else}}
<div id="ast-container" class="ast-container list-view">
<div class="ctrl-info-panel col-centered text-center wr-login">
<h2>You don't have any device assigned to this group to view analytics.</h2>
<h2>You don't have any device assigned to this group to view analytics. Let's add a new device group!</h2>
<br/>
<p class="text-center">
<a href="{{@app.context}}/devices" class="wr-btn">

@ -25,10 +25,17 @@
<p class="page-sub-title">Add New Group</p>
<p>Create new device group on IoT Server</p>
<p>Create new device group on
{{#if isCloud}}
Device Cloud
{{else}}
IoT Server
{{/if}}
.
</p>
<!-- validation -->
<span class="wr-validation-summary hidden center-block col-centered">
<span class="wr-validation-summary hidden center-block col-centered">
<strong class="label label-danger col-centered"></strong>
</span>
@ -51,9 +58,11 @@
<div class="wr-input-control">
<button class="wr-btn" id="add-group-btn">
Add</button>
Add
</button>
<button class="wr-btn" onclick="window.location = '{{@app.context}}/groups';return false;">
Cancel</button>
Cancel
</button>
</div>
</div>
</div>

@ -25,6 +25,7 @@
function onRequest(context) {
var devicemgtProps = require("/app/modules/conf-reader/main.js")["conf"];
var page = {};
page["isCloud"] = devicemgtProps.isCloud;
page["groupNameJSRegEx"] = devicemgtProps.groupValidationConfig.groupNameJSRegEx;
page["groupNameRegExViolationErrorMsg"] = devicemgtProps.groupValidationConfig.groupNameRegExViolationErrorMsg;
page["groupNameHelpMsg"] = devicemgtProps.groupValidationConfig.groupNameHelpMsg;

@ -45,7 +45,7 @@ $(function () {
var successCallback = function (jqXHR, status, resp) {
if (resp.status == 201) {
$('.wr-validation-summary strong').text("Group created. You will be redirected to groups");
$('.wr-validation-summary strong').text("Successfully created the group! You will be redirected to the group management page.");
$('.wr-validation-summary').removeClass("hidden");
$('.wr-validation-summary strong').removeClass("label-danger");
$('.wr-validation-summary strong').addClass("label-success");

@ -82,7 +82,7 @@
<h3 class="text-muted">
<i class="fw fw-group fw-3x"></i>
</h3>
<h3 class="text-muted">You don't have any group registered at the moment</h3>
<h3 class="text-muted">You don't have any device group. Let's add a new device group!</h3>
{{#if permissions.ADD_GROUP}}
<h3>
<!--suppress HtmlUnknownTarget -->

@ -91,7 +91,7 @@
<h3 class="text-muted">
<i class="fw fw-policy fw-3x"></i>
</h3>
<h3 class="text-muted">You do not have any device policy at the moment</h3>
<h3 class="text-muted">You don't have any device policies. Let's add a new policy!</h3>
{{#if permissions.ADD_ADMIN_POLICY}}
<h3>
<!--suppress HtmlUnknownTarget -->

Loading…
Cancel
Save