2021-03-18 22:20:59 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
2021-03-19 20:40:40 +00:00
|
|
|
|
|
|
|
{{table|safe}}
|
2021-04-17 00:19:38 +00:00
|
|
|
<div>
|
|
|
|
<button id="deactivateUsersButton" class="btn btn-warning">Deactivate users</button>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<form method="post">
|
|
|
|
<button type="submit" name="registerUser" class="btn btn-primary">Register user</button>
|
|
|
|
</form>
|
2021-03-19 20:40:40 +00:00
|
|
|
|
2021-03-18 22:20:59 +00:00
|
|
|
{% endblock content %}
|
2021-04-17 00:19:38 +00:00
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
<script>
|
|
|
|
var $table = $('#usersTab')
|
|
|
|
var $button = $('#deactivateUsersButton')
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
$button.click(function () {
|
|
|
|
window.location.href = '{{url_for("deactivate_users")}}?json=' + JSON.stringify($table.bootstrapTable('getSelections'))
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
{% endblock scripts %}
|