intent/templates/orgs/my_invites.html

27 lines
947 B
HTML
Raw Permalink Normal View History

{% extends "base.html" %}
{% block title %}Invitations · Intent{% endblock %}
{% block content %}
<h1>Invitations</h1>
{% if invites %}
<ul>
{% for invite in invites %}
<li>
<p>
<strong>{{ invite.org.name }}</strong>, as {{ invite.get_role_display|lower }}
{% if invite.invited_by %}(invited by {{ invite.invited_by.username }}){% endif %}
</p>
<form method="post" action="{% url 'invites:respond' invite_id=invite.pk %}">
{% csrf_token %}
<button type="submit" name="action" value="accept">Accept <span class="visually-hidden">{{ invite.org.name }}</span></button>
<button type="submit" name="action" value="decline">Decline <span class="visually-hidden">{{ invite.org.name }}</span></button>
</form>
</li>
{% endfor %}
</ul>
{% else %}
<p>No pending invitations.</p>
{% endif %}
{% endblock %}