2021-10-02 03:48:53 +00:00
|
|
|
{% load i18n %}
|
2022-01-18 20:30:46 +00:00
|
|
|
{% load group_tags %}
|
|
|
|
|
2021-10-02 03:48:53 +00:00
|
|
|
{% if request.user == user or not request.user == group.user or not request.user.is_authenticated %}
|
|
|
|
{% else %}
|
2021-10-03 02:57:21 +00:00
|
|
|
{% if user in request.user.blocks.all %}
|
|
|
|
{% include 'snippets/block_button.html' with blocks=True %}
|
|
|
|
<br/>
|
|
|
|
{% endif %}
|
2021-10-16 05:43:09 +00:00
|
|
|
<div class="fieldmb-0">
|
2021-10-02 03:48:53 +00:00
|
|
|
<div class="control">
|
2021-10-16 05:43:09 +00:00
|
|
|
<form action="{% url 'remove-group-member' %}" method="POST" class="has-text-centered">
|
2021-10-02 03:48:53 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="group" value="{{ group.id }}">
|
|
|
|
<input type="hidden" name="user" value="{{ user.username }}">
|
2021-10-16 05:43:09 +00:00
|
|
|
<button id="submit_button" class="button is-small is-danger is-light is-hidden" type="submit" data-id="member_{{ member.id }}">
|
2021-10-24 13:43:31 +00:00
|
|
|
{% trans "Confirm" %}
|
2021-10-16 05:43:09 +00:00
|
|
|
</button>
|
|
|
|
<button id="hide_submit_button" data-controls="submit_button" class="button is-small" type="button" aria-pressed="false">
|
2021-10-24 13:43:31 +00:00
|
|
|
{% trans "Remove" %}
|
2021-10-04 11:20:02 +00:00
|
|
|
</button>
|
2021-10-02 03:48:53 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|