forked from mirrors/bookwyrm
0984972b05
- fix display of group information on user and group pages - send, receive, accept and reject invitations
16 lines
673 B
HTML
16 lines
673 B
HTML
{% load i18n %}
|
|
{% load bookwyrm_group_tags %}
|
|
{% 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 %}
|