2018-06-20 02:51:18 -04:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title"><% if (typeof id !== 'undefined') { %>Edit<% } else { %>New<% } %> User</h5>
|
|
|
|
<button type="button" class="close cancel" aria-label="Close" data-dismiss="modal"> </button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label">Full Name <span class="form-required">*</span></label>
|
|
|
|
<input name="name" type="text" class="form-control" placeholder="Joe Citizen" value="<%- name %>" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label">Nickname</label>
|
|
|
|
<input name="nickname" type="text" class="form-control" placeholder="Joe" value="<%- nickname %>">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12 col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label">Email <span class="form-required">*</span></label>
|
|
|
|
<input name="email" type="email" class="form-control" placeholder="joe@example.com" value="<%- email %>" required>
|
2018-06-25 21:56:10 -04:00
|
|
|
<div class="invalid-feedback secret-error"></div>
|
2018-06-20 02:51:18 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12 col-md-12">
|
2018-07-04 18:27:25 -04:00
|
|
|
<div class="form-label">Roles</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
|
|
|
<input type="checkbox" class="custom-switch-input" name="is_admin" value="1"<%- isAdmin() ? ' checked' : '' %><%- isSelf() ? ' disabled' : '' %>>
|
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
<span class="custom-switch-description">Administrator</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-6">
|
2018-06-20 02:51:18 -04:00
|
|
|
<div class="form-group">
|
2018-07-04 18:27:25 -04:00
|
|
|
<label class="custom-switch">
|
|
|
|
<input type="checkbox" class="custom-switch-input" name="is_disabled" value="1"<%- is_disabled ? ' checked' : '' %><%- isSelf() ? ' disabled' : '' %>>
|
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
<span class="custom-switch-description">Disabled</span>
|
|
|
|
</label>
|
2018-06-20 02:51:18 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary cancel" data-dismiss="modal">Cancel</button>
|
|
|
|
<button type="button" class="btn btn-teal save">Save</button>
|
|
|
|
</div>
|
|
|
|
</div>
|