intent/templates/orgs/invite.html

21 lines
832 B
HTML
Raw Permalink Normal View History

{% extends "base.html" %}
{% block title %}Invitation to {{ invite.org.name }} · Intent{% endblock %}
{% block content %}
<h1>Join {{ invite.org.name }}</h1>
{% if invite.is_open %}
<p>
{% if invite.invited_by %}{{ invite.invited_by.username }} invited you{% else %}You're invited{% endif %}
to join as {{ invite.get_role_display|lower }}. You'll join as <strong>{{ user.username }}</strong>.
</p>
<form method="post" action="{% url 'invites:respond' invite_id=invite.pk %}">
{% csrf_token %}
<button type="submit" name="action" value="accept">Accept</button>
<button type="submit" name="action" value="decline">Decline</button>
</form>
{% else %}
<p>This invitation is no longer valid. Ask an owner of {{ invite.org.name }} for a new one.</p>
{% endif %}
{% endblock %}