techtalk/template/manage_group.html
2024-09-20 17:13:37 +02:00

24 lines
740 B
HTML

{% extends "base.html" %}
{% block title %}Manage {{ group.name }}{% endblock %}
{% block content %}
<h1>Manage {{ group.name }}</h1>
<h2>Join Requests</h2>
{% if join_requests %}
<form method="POST">
{% for request in join_requests %}
<div class="mb-3">
<p>{{ request.user.username }} wants to join the group</p>
<div class="btn-group" role="group">
<button type="submit" name="request_{{ request.id }}" value="accept" class="btn btn-success">Accept</button>
<button type="submit" name="request_{{ request.id }}" value="reject" class="btn btn-danger">Reject</button>
</div>
</div>
{% endfor %}
</form>
{% else %}
<p>No pending join requests.</p>
{% endif %}
{% endblock %}