mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Redirect to user listing after editing the user.
This commit is contained in:
parent
bf789b91f3
commit
e238cfd2f9
@ -123,18 +123,7 @@
|
||||
<div class="wr-form">
|
||||
<p class="page-sub-title">User was updated successfully.</p>
|
||||
|
||||
<br>Please click <b>"View Updated User"</b>, if you wish to view the updated user or click
|
||||
<b>"View User List"</b> to complete the process and go back to the user list.
|
||||
<hr/>
|
||||
<button class="wr-btn" onclick="window.location.href='{{@app.context}}/users'">View User List
|
||||
</button>
|
||||
<a href="{{@app.context}}/user/view?username={{editUser.username}}" class="cu-btn-inner">
|
||||
<span class="fw-stack">
|
||||
<i class="fw fw-circle-outline fw-stack-2x"></i>
|
||||
<i class="fw fw-view fw-stack-1x"></i>
|
||||
</span>
|
||||
View Updated User
|
||||
</a>
|
||||
<br>You will be redirected to User Listing Page in a moment.
|
||||
</div>
|
||||
</div>
|
||||
<!-- /content -->
|
||||
|
||||
@ -248,6 +248,10 @@ $(document).ready(function () {
|
||||
// Refreshing with success message
|
||||
$("#user-create-form").addClass("hidden");
|
||||
$("#user-created-msg").removeClass("hidden");
|
||||
setTimeout(function () {
|
||||
window.location.href = "/devicemgt/users"
|
||||
}, 1000);
|
||||
|
||||
}
|
||||
}, function (jqXHR) {
|
||||
var payload = JSON.parse(jqXHR.responseText);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user