2018-06-20 02:51:18 -04:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2018-07-18 02:55:09 -04:00
|
|
|
<h5 class="modal-title"><%- i18n('users', 'form-title', {id: id}) %></h5>
|
2018-06-20 02:51:18 -04:00
|
|
|
<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">
|
2018-07-18 02:55:09 -04:00
|
|
|
<label class="form-label"><%- i18n('users', 'full-name') %> <span class="form-required">*</span></label>
|
2018-06-20 02:51:18 -04:00
|
|
|
<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">
|
2020-03-11 18:46:18 -04:00
|
|
|
<label class="form-label"><%- i18n('users', 'nickname') %><span class="form-required">*</span> </label>
|
|
|
|
<input name="nickname" type="text" class="form-control" placeholder="Joe" value="<%- nickname %>" required>
|
2018-06-20 02:51:18 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12 col-md-12">
|
|
|
|
<div class="form-group">
|
2018-07-18 02:55:09 -04:00
|
|
|
<label class="form-label"><%- i18n('str', 'email') %> <span class="form-required">*</span></label>
|
2018-06-20 02:51:18 -04:00
|
|
|
<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>
|
2018-08-24 02:04:27 -04:00
|
|
|
<% if (isAdmin() && !isSelf()) { %>
|
2018-06-20 02:51:18 -04:00
|
|
|
<div class="col-sm-12 col-md-12">
|
2018-07-18 02:55:09 -04:00
|
|
|
<div class="form-label"><%- i18n('roles', 'title') %></div>
|
2018-07-04 18:27:25 -04:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
2018-08-24 02:04:27 -04:00
|
|
|
<input type="checkbox" class="custom-switch-input" name="is_admin" value="1"<%- isAdminUser() ? ' checked' : '' %><%- isSelf() ? ' disabled' : '' %>>
|
2018-07-04 18:27:25 -04:00
|
|
|
<span class="custom-switch-indicator"></span>
|
2018-07-18 02:55:09 -04:00
|
|
|
<span class="custom-switch-description"><%- i18n('roles', 'admin') %></span>
|
2018-07-04 18:27:25 -04:00
|
|
|
</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>
|
2018-07-18 02:55:09 -04:00
|
|
|
<span class="custom-switch-description"><%- i18n('str', 'disabled') %></span>
|
2018-07-04 18:27:25 -04:00
|
|
|
</label>
|
2018-06-20 02:51:18 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-16 03:00:52 -04:00
|
|
|
<% } %>
|
2018-06-20 02:51:18 -04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2018-07-18 02:55:09 -04:00
|
|
|
<button type="button" class="btn btn-secondary cancel" data-dismiss="modal"><%- i18n('str', 'cancel') %></button>
|
|
|
|
<button type="button" class="btn btn-teal save"><%- i18n('str', 'save') %></button>
|
2018-06-20 02:51:18 -04:00
|
|
|
</div>
|
|
|
|
</div>
|