2021-10-02 02:30:48 +00:00
|
|
|
{% load i18n %}
|
2022-01-18 20:30:46 +00:00
|
|
|
{% load group_tags %}
|
|
|
|
|
2021-10-02 02:30:48 +00:00
|
|
|
{% if group|is_invited:request.user %}
|
|
|
|
<div class="field is-grouped">
|
|
|
|
<form action="/accept-group-invitation/" method="POST">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="group" value="{{ group.id }}">
|
|
|
|
<button class="button is-link is-small" type="submit">{% trans "Accept" %}</button>
|
|
|
|
</form>
|
|
|
|
<form action="/reject-group-invitation/" method="POST">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="group" value="{{ group.id }}">
|
|
|
|
<button class="button is-danger is-light is-small" type="submit" class="warning">{% trans "Delete" %}</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|