mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request #604 from Kamidu/cloud-3.1.0
chenge the group creating steps
This commit is contained in:
commit
03ab5ab853
@ -21,7 +21,7 @@
|
||||
|
||||
{{#zone "content"}}
|
||||
<div class="container container-bg white-bg">
|
||||
<div class="col-md-12 col-lg-6 col-centered wr-content wr-login col-centered sign-panel">
|
||||
<div class="col-md-12 col-lg-6 col-centered wr-content wr-login col-centered sign-panel" id="group-create-form">
|
||||
|
||||
<p class="page-sub-title">Add New Group</p>
|
||||
|
||||
@ -66,6 +66,26 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="group-created-msg" class="container col-centered wr-content hidden">
|
||||
<div class="wr-form">
|
||||
<p class="page-sub-title">Group was created successfully.</p>
|
||||
|
||||
<br>Please click <b>"Add Another Group"</b>, if you wish to add another group or click
|
||||
<b>"View Group List"</b> to complete the process and go back to the group list.
|
||||
<hr/>
|
||||
<button class="wr-btn" onclick="window.location.href='{{@app.context}}/groups'">View User List
|
||||
</button>
|
||||
<a href="{{@app.context}}/group/add" class="cu-btn-inner">
|
||||
<span class="fw-stack">
|
||||
<i class="fw fw-circle-outline fw-stack-2x"></i>
|
||||
<i class="fw fw-add fw-stack-1x"></i>
|
||||
</span>
|
||||
Add Another Group
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{/zone}}
|
||||
{{#zone "bottomJs"}}
|
||||
|
||||
@ -45,13 +45,8 @@ $(function () {
|
||||
|
||||
var successCallback = function (jqXHR, status, resp) {
|
||||
if (resp.status == 201) {
|
||||
$('.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");
|
||||
setTimeout(function () {
|
||||
window.location = "../groups";
|
||||
}, 1500);
|
||||
$("#group-create-form").addClass("hidden");
|
||||
$("#group-created-msg").removeClass("hidden");
|
||||
} else {
|
||||
displayErrors(resp.status);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user