21 lines
775 B
HTML
21 lines
775 B
HTML
|
|
{% 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">
|
||
|
|
{% 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 %}
|