|
|
@ -19,7 +19,16 @@
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<!-- content -->
|
|
|
|
<!-- content -->
|
|
|
|
<div id="role-create-form" data-cloud={{isCloud}} class="container col-centered wr-content">
|
|
|
|
{{#if isAdminRole}}
|
|
|
|
|
|
|
|
<div class="container col-centered wr-content">
|
|
|
|
|
|
|
|
<div class="wr-form">
|
|
|
|
|
|
|
|
<p class="page-sub-title">Attention!</p>
|
|
|
|
|
|
|
|
<hr/>
|
|
|
|
|
|
|
|
<br>This is an prohibited action.
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
<div id="role-create-form" data-cloud={{isCloud}} class="container">
|
|
|
|
<div class="wr-form">
|
|
|
|
<div class="wr-form">
|
|
|
|
<p class="page-sub-title">Edit Role</p>
|
|
|
|
<p class="page-sub-title">Edit Role</p>
|
|
|
|
<p>Please note that * sign represents required fields of data.</p>
|
|
|
|
<p>Please note that * sign represents required fields of data.</p>
|
|
|
@ -51,25 +60,23 @@
|
|
|
|
data-errormsg="{{roleNameRegExViolationErrorMsg}}" class="form-control"
|
|
|
|
data-errormsg="{{roleNameRegExViolationErrorMsg}}" class="form-control"
|
|
|
|
data-currentrole="{{role.roleName}}"
|
|
|
|
data-currentrole="{{role.roleName}}"
|
|
|
|
value="{{role.roleName}}"/>
|
|
|
|
value="{{role.roleName}}"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{else}}
|
|
|
|
<div id="roleNameField" class="form-group wr-input-control">
|
|
|
|
<div id="roleNameField" class="form-group wr-input-control">
|
|
|
|
<input type="text" id="rolename" data-regex="{{roleNameJSRegEx}}"
|
|
|
|
<input type="text" id="rolename" data-regex="{{roleNameJSRegEx}}"
|
|
|
|
data-errormsg="{{roleNameRegExViolationErrorMsg}}" class="form-control"
|
|
|
|
data-errormsg="{{roleNameRegExViolationErrorMsg}}" class="form-control"
|
|
|
|
data-currentrole="{{role.roleName}}"
|
|
|
|
data-currentrole="{{role.roleName}}"
|
|
|
|
value="{{role.roleName}}"/>
|
|
|
|
value="{{role.roleName}}"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
<span class=" rolenameError hidden glyphicon glyphicon-remove form-control-feedback"></span>
|
|
|
|
<span class=" rolenameError hidden glyphicon glyphicon-remove form-control-feedback"></span>
|
|
|
|
<label class="error rolenameEmpty hidden" for="summary">Role name is required & Should be in
|
|
|
|
<label class="error rolenameEmpty hidden" for="summary">Role name is required & Should be in
|
|
|
|
minimum 3 characters long and do not
|
|
|
|
minimum 3 characters long and do not
|
|
|
|
include any whitespaces. </label>
|
|
|
|
include any whitespaces. </label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<button id="add-role-btn" class="wr-btn">Update Role</button>
|
|
|
|
<button id="add-role-btn" class="wr-btn">Update Role</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="role-created-msg" class="container col-centered wr-content hidden">
|
|
|
|
<div id="role-created-msg" class="container col-centered wr-content hidden">
|
|
|
|
<div class="wr-form">
|
|
|
|
<div class="wr-form">
|
|
|
|
<p class="page-sub-title">Role was updated successfully.</p>
|
|
|
|
<p class="page-sub-title">Role was updated successfully.</p>
|
|
|
@ -80,6 +87,11 @@
|
|
|
|
<div id="app-context" data-app-context="{{@app.context}}" class="hidden"></div>
|
|
|
|
<div id="app-context" data-app-context="{{@app.context}}" class="hidden"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- /content/body -->
|
|
|
|
<!-- /content/body -->
|
|
|
|
{{#zone "bottomJs"}}
|
|
|
|
{{#zone "bottomJs"}}
|
|
|
|
{{js "js/bottomJs.js"}}
|
|
|
|
{{js "js/bottomJs.js"}}
|
|
|
|