moviewyrm/bookwyrm/templates/snippets/follow_request_buttons.html

14 lines
529 B
HTML
Raw Normal View History

{% load fr_display %}
{% if request.user|follow_request_exists:user %}
<form action="/accept_follow_request/" method="POST">
{% csrf_token %}
2020-03-16 23:10:59 +00:00
<input type="hidden" name="user" value="{{ user.username }}">
2020-09-29 20:39:44 +00:00
<button class="button is-small" type="submit">Accept</button>
</form>
<form action="/delete_follow_request/" method="POST">
{% csrf_token %}
2020-03-16 23:10:59 +00:00
<input type="hidden" name="user" value="{{ user.username }}">
2020-09-29 20:39:44 +00:00
<button class="button is-small" type="submit" class="warning">Delete</button>
</form>
{% endif %}