28 lines
1.6 KiB
HTML
28 lines
1.6 KiB
HTML
{% extends 'base.html' %}
|
|
{% from "macros.html" import render_selectable_table, render_pagination %}
|
|
|
|
{% block title %}View Users{% endblock %}
|
|
|
|
{% block content_title %}Select a user{% endblock %}
|
|
{% block content_description %}Select the user you'd like to action upon{% endblock %}
|
|
|
|
{% block content %}
|
|
<form action="{{ url_for('user_bp.handle_user_action') }}" method="POST" id="usersForm">
|
|
{{ render_selectable_table(headers=["User ID", "User Name", "Email"], rows=rows, selectable=True, id="usersTable") }}
|
|
<div class="form-group mt-3 d-flex justify-content-between">
|
|
<div>
|
|
<button type="submit" name="action" value="edit_user" class="btn btn-primary" onclick="return validateTableSelection('usersForm')">Edit User</button>
|
|
<button type="submit" name="action" value="resend_confirmation_email" class="btn btn-secondary" onclick="return validateTableSelection('usersForm')">Resend Confirmation</button>
|
|
<button type="submit" name="action" value="send_password_reset_email" class="btn btn-secondary" onclick="return validateTableSelection('usersForm')">Password Reset</button>
|
|
<button type="submit" name="action" value="reset_uniquifier" class="btn btn-secondary" onclick="return validateTableSelection('usersForm')">Reset Uniquifier</button>
|
|
</div>
|
|
<button type="submit" name="action" value="create_user" class="btn btn-success">Register User</button>
|
|
<!-- Additional buttons can be added here for other actions -->
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|
|
|
|
{% block content_footer %}
|
|
{{ render_pagination(pagination, 'user_bp.select_tenant') }}
|
|
{% endblock %}
|