mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-22 23:51:03 +00:00
26 lines
638 B
HTML
26 lines
638 B
HTML
{% extends "layout.html" %}
|
|
{% block content %}
|
|
|
|
{{table|safe}}
|
|
<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>
|
|
|
|
{% endblock content %}
|
|
|
|
{% 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 %}
|