@ -36,115 +36,119 @@
{{ / zone }}
{{ / zone }}
{{ # zone "content" }}
{{ # zone "content" }}
{{ # if canManage }}
{{ # if canManage }}
<!-- content/body -->
<!-- content/body -->
<div class="row">
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<!-- content -->
<!-- content -->
<div id="user-create-form" class="container col-centered wr-content">
<div id="user-create-form" class="container col-centered wr-content">
<div class="wr-form">
<div class="wr-form">
<p class="page-sub-title">Edit User</p>
<p class="page-sub-title">Edit User</p>
<p>Please note that * sign represents required fields of data.</p>
<p>Please note that * sign represents required fields of data.</p>
<hr/>
<hr/>
<div class="row">
<div class="row">
<div class="col-lg-8">
<div class="col-lg-8">
<div id="user-create-error-msg" class="alert alert-danger hidden" role="alert">
<div id="user-create-error-msg" class="alert alert-danger hidden" role="alert">
<i class="icon fw fw-error"></i><span></span>
<i class="icon fw fw-error"></i><span></span>
</div>
</div>
<label class="wr-input-label" title="Select the domain of the user store from the drop-down given below. The domain of the default user store is PRIMARY">
<label class="wr-input-label"
User Store Domain
title="Select the domain of the user store from the drop-down given below. The domain of the default user store is PRIMARY">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
User Store Domain
</label>
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
<div class="wr-input-control">
</label>
<select id="userStore" class="form-control select" disabled>
<div class="wr-input-control">
<option value=" {{ userStore }} " selected> {{ userStore }} </option>
<select id="userStore" class="form-control select" disabled>
</select>
<option value=" {{ userStore }} " selected> {{ userStore }} </option>
</div>
</select>
<label class="wr-input-label">
</div>
User Name <br>
<label class="wr-input-label">
</label>
User Name <br>
<div class="wr-input-control">
</label>
<input type="text" id="username" data-regex=" {{ usernameJSRegEx }} "
<div class="wr-input-control">
data-errormsg=" {{ usernameRegExViolationErrorMsg }} " class="form-control"
<input type="text" id="username" data-regex=" {{ usernameJSRegEx }} "
value=" {{ editUser .username }} " disabled/>
data-errormsg=" {{ usernameRegExViolationErrorMsg }} " class="form-control"
</div>
value=" {{ editUser .username }} " disabled/>
<label class="wr-input-label">First Name *</label>
</div>
<div id="firstNameField" class="form-group wr-input-control">
<label class="wr-input-label">First Name *</label>
<input type="text" id="firstname" data-regex=" {{ firstnameJSRegEx }} "
<div id="firstNameField" class="form-group wr-input-control">
data-errormsg=" {{ firstnameRegExViolationErrorMsg }} " class="form-control"
<input type="text" id="firstname" data-regex=" {{ firstnameJSRegEx }} "
value=" {{ editUser .firstname }} "/>
data-errormsg=" {{ firstnameRegExViolationErrorMsg }} " class="form-control"
<span class="glyphicon glyphicon-remove form-control-feedback hidden fnError"></span>
value=" {{ editUser .firstname }} "/>
<label class=" hidden error fnError" for="summary">This field is required.</label>
<span class="glyphicon glyphicon-remove form-control-feedback hidden fnError"></span>
</div>
<label class=" hidden error fnError" for="summary">This field is required.</label>
<label class="wr-input-label">Last Name *</label>
</div>
<div id="lastNameField" class="form-group wr-input-control">
<label class="wr-input-label">Last Name *</label>
<input type="text" id="lastname" data-regex=" {{ lastnameJSRegEx }} "
<div id="lastNameField" class="form-group wr-input-control">
data-errormsg=" {{ lastnameRegExViolationErrorMsg }} " class="form-control"
<input type="text" id="lastname" data-regex=" {{ lastnameJSRegEx }} "
value=" {{ editUser .lastname }} "/>
data-errormsg=" {{ lastnameRegExViolationErrorMsg }} " class="form-control"
<span class="glyphicon glyphicon-remove form-control-feedback hidden lnError"></span>
value=" {{ editUser .lastname }} "/>
<label class=" hidden error lnError" for="summary">This field is required.</label>
<span class="glyphicon glyphicon-remove form-control-feedback hidden lnError"></span>
</div>
<label class=" hidden error lnError" for="summary">This field is required.</label>
<label class="wr-input-label">
</div>
Email Address * <br>
<label class="wr-input-label">
( ex: sam@gmail.com )
Email Address * <br>
</label>
( ex: sam@gmail.com )
<div id="emailField" class=" form-group wr-input-control">
</label>
<input type="email" id="emailAddress" class="form-control"
<div id="emailField" class=" form-group wr-input-control">
value=" {{ editUser .emailAddress }} "/>
<input type="email" id="emailAddress" class="form-control"
<span class="glyphicon glyphicon-remove form-control-feedback hidden emailError"></span>
value=" {{ editUser .emailAddress }} "/>
<label class=" hidden error email-required" for="summary">This field is
<span class="glyphicon glyphicon-remove form-control-feedback hidden emailError"></span>
required.</label>
<label class=" hidden error email-required" for="summary">This field is
<label class=" hidden error email-invalid" for="summary">Invalid Email Address.</label>
required.</label>
</div>
<label class=" hidden error email-invalid" for="summary">Invalid Email
<label class="wr-input-label"
Address.</label>
title="Optional field that can have 0-to-many roles for the user">
</div>
User Roles
{{ # if canViewRoles }}
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
<label class="wr-input-label"
</label>
title="Optional field that can have 0-to-many roles for the user">
<div class="wr-input-control">
User Roles
<select id="roles" class="form-control select2" multiple="multiple"
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
selectedVals=" {{ # each rolesByUsername }} {{ this }} , {{ / each }} ">
</label>
{{ # each rolesByUserStore }}
<div class="wr-input-control">
<option> {{ this }} </option>
<select id="roles" class="form-control select2" multiple="multiple"
{{ / each }}
selectedVals=" {{ # each rolesByUsername }} {{ this }} , {{ / each }} ">
</select>
{{ # each rolesByUserStore }}
<option> {{ this }} </option>
{{ / each }}
</select>
</div>
{{ / if }}
</div>
</div>
</div>
</div>
<br>
<button id="add-user-btn" class="wr-btn">Save User</button>
</div>
</div>
<br>
<button id="add-user-btn" class="wr-btn">Save User</button>
</div>
</div>
</div>
<div id="user-created-msg" class="container col-centered wr-content hidden">
<div id="user-created-msg" class="container col-centered wr-content hidden">
<div class="wr-form">
<div class="wr-form">
<p class="page-sub-title">User was updated successfully.</p>
<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
<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.
<b>"View User List"</b> to complete the process and go back to the user list.
<hr/>
<hr/>
<button class="wr-btn" onclick="window.location.href='{{ @ app .context }} /users'">View User List
<button class="wr-btn" onclick="window.location.href='{{ @ app .context }} /users'">View User List
</button>
</button>
<a href="{{ @ app .context }} /user/view?username= {{ editUser .username }} " class="cu-btn-inner">
<a href="{{ @ app .context }} /user/view?username= {{ editUser .username }} " class="cu-btn-inner">
<span class="fw-stack">
<span class="fw-stack">
<i class="fw fw-ring fw-stack-2x"></i>
<i class="fw fw-ring fw-stack-2x"></i>
<i class="fw fw-view fw-stack-1x"></i>
<i class="fw fw-view fw-stack-1x"></i>
</span>
</span>
View Updated User
View Updated User
</a>
</a>
</div>
</div>
</div>
<!-- /content -->
</div>
</div>
<!-- /content -->
</div>
</div>
</div>
<!-- /content/body -->
<!-- /content/body -->
{{ else }}
{{ else }}
<h1 class="page-sub-title">
<h1 class="page-sub-title">
Permission Denied
Permission Denied
</h1>
</h1>
<br>
<br>
You not authorized to enter User Management Section.
You not authorized to enter User Management Section.
<br>
<br>
{{ / if }}
{{ / if }}
{{ / zone }}
{{ / zone }}