moviewyrm/bookwyrm/templates/snippets/follow_request_buttons.html

16 lines
657 B
HTML
Raw Normal View History

2021-02-28 02:48:10 +00:00
{% load i18n %}
{% if request.user in user.follow_requests.all %}
2020-12-31 01:36:35 +00:00
<div class="field is-grouped">
<form action="/accept-follow-request/" method="POST">
{% csrf_token %}
<input type="hidden" name="user" value="{{ user.username }}">
2021-02-28 02:48:10 +00:00
<button class="button is-link is-small" type="submit">{% trans "Accept" %}</button>
2020-12-31 01:36:35 +00:00
</form>
<form action="/delete-follow-request/" method="POST">
{% csrf_token %}
<input type="hidden" name="user" value="{{ user.username }}">
2021-02-28 02:48:10 +00:00
<button class="button is-danger is-light is-small" type="submit" class="warning">{% trans "Delete" %}</button>
2020-12-31 01:36:35 +00:00
</form>
</div>
{% endif %}