2015-06-15 21:49:16 +00:00
|
|
|
{{define "body"}}
|
2015-06-24 04:02:29 +00:00
|
|
|
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
|
|
|
|
<div class="row">
|
|
|
|
<h1 class="page-header">
|
2019-05-31 18:58:18 +00:00
|
|
|
{{.Title}}
|
2015-06-24 04:02:29 +00:00
|
|
|
</h1>
|
|
|
|
</div>
|
2020-06-20 03:03:51 +00:00
|
|
|
<div id="flashes" class="row">
|
|
|
|
{{template "flashes" .Flashes}}
|
|
|
|
</div>
|
2015-06-15 21:49:16 +00:00
|
|
|
<div class="row">
|
2019-05-31 18:58:18 +00:00
|
|
|
<button type="button" class="btn btn-primary" id="new_button" data-toggle="modal" data-backdrop="static"
|
|
|
|
data-user-id="-1" data-target="#modal">
|
|
|
|
<i class="fa fa-plus"></i> New User</button>
|
2015-06-15 21:49:16 +00:00
|
|
|
</div>
|
|
|
|
|
2015-08-05 05:23:05 +00:00
|
|
|
<div id="loading">
|
|
|
|
<i class="fa fa-spinner fa-spin fa-4x"></i>
|
|
|
|
</div>
|
2015-06-24 04:02:29 +00:00
|
|
|
<div class="row">
|
2019-05-31 18:58:18 +00:00
|
|
|
<table id="userTable" class="table" style="display:none;">
|
2015-06-24 04:02:29 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-05-31 18:58:18 +00:00
|
|
|
<th>Username</th>
|
|
|
|
<th>Role</th>
|
2016-01-17 21:27:11 +00:00
|
|
|
<th class="col-md-2 no-sort"></th>
|
2015-06-24 04:02:29 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-06-17 04:09:27 +00:00
|
|
|
</div>
|
|
|
|
<!-- Modal -->
|
2015-06-18 03:44:05 +00:00
|
|
|
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
2018-03-27 02:04:22 +00:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2019-05-31 18:58:18 +00:00
|
|
|
<h4 class="modal-title" id="groupModalLabel">New User</h4>
|
2018-03-27 02:04:22 +00:00
|
|
|
</div>
|
2019-05-31 18:58:18 +00:00
|
|
|
<div class="modal-body" id="modal_body">
|
2018-03-27 02:04:22 +00:00
|
|
|
<div class="row" id="modal.flashes"></div>
|
2019-05-31 18:58:18 +00:00
|
|
|
<label class="control-label" for="username">Username:</label>
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control" placeholder="Username" id="username" autofocus />
|
|
|
|
</div>
|
|
|
|
<label class="control-label" for="password">Password:</label>
|
2018-03-27 02:04:22 +00:00
|
|
|
<div class="form-group">
|
2020-06-20 03:03:51 +00:00
|
|
|
<input type="password" class="form-control" autocomplete="new-password" placeholder="Password" id="password" required />
|
|
|
|
<div class="hidden" id="password-strength-container">
|
|
|
|
<div class="progress" id="password-strength">
|
|
|
|
<div id="password-strength-bar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
|
|
|
|
</div>
|
|
|
|
<span id="password-strength-description"></span>
|
|
|
|
</div>
|
2018-03-27 02:04:22 +00:00
|
|
|
</div>
|
2019-05-31 18:58:18 +00:00
|
|
|
<label class="control-label" for="confirm_password">Confirm Password:</label>
|
2018-03-27 02:04:22 +00:00
|
|
|
<div class="form-group">
|
2019-05-31 18:58:18 +00:00
|
|
|
<input type="password" class="form-control" placeholder="Confirm Password" id="confirm_password"
|
|
|
|
required />
|
2018-03-27 02:04:22 +00:00
|
|
|
</div>
|
2020-06-20 03:03:51 +00:00
|
|
|
<div class="checkbox checkbox-primary">
|
|
|
|
<input id="force_password_change_checkbox" type="checkbox" checked>
|
|
|
|
<label for="force_password_change_checkbox">Require the user to set a new password</label>
|
|
|
|
</div>
|
2019-05-31 18:58:18 +00:00
|
|
|
<label class="control-label" for="role">Role:</label>
|
|
|
|
<div class="form-group" id="role-select">
|
|
|
|
<select class="form-control" placeholder="" id="role" />
|
|
|
|
<option value="admin">Admin</option>
|
|
|
|
<option value="user">User</option>
|
|
|
|
</select>
|
2018-03-27 02:04:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
<button type="button" class="btn btn-primary" id="modalSubmit">Save changes</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-15 21:49:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-27 02:04:22 +00:00
|
|
|
{{end}} {{define "scripts"}}
|
2020-06-20 03:03:51 +00:00
|
|
|
<script src="/js/dist/app/passwords.min.js"></script>
|
2017-01-08 20:35:08 +00:00
|
|
|
<script src="/js/dist/app/users.min.js"></script>
|
2018-03-27 02:04:22 +00:00
|
|
|
{{end}}
|