24 lines
752 B
HTML
24 lines
752 B
HTML
|
|
{% extends "base.html" %}
|
||
|
|
|
||
|
|
{% block title %}{{ org.name }} · Intent{% endblock %}
|
||
|
|
|
||
|
|
{% block content %}
|
||
|
|
<h1>{{ org.name }}</h1>
|
||
|
|
|
||
|
|
{% if access.is_member %}
|
||
|
|
<p>You're {% if access.is_owner %}an owner{% else %}a collaborator{% endif %} of this organization.</p>
|
||
|
|
<ul>
|
||
|
|
<li><a href="{% url 'orgs:members' org_slug=org.slug %}">Members</a></li>
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
<details>
|
||
|
|
<summary>Leave {{ org.name }}</summary>
|
||
|
|
<form method="post" action="{% url 'orgs:member_remove' org_slug=org.slug membership_id=access.membership.pk %}">
|
||
|
|
{% csrf_token %}
|
||
|
|
<p>You'll need a new invitation to rejoin.</p>
|
||
|
|
<p><button type="submit">Leave {{ org.name }}</button></p>
|
||
|
|
</form>
|
||
|
|
</details>
|
||
|
|
{% endif %}
|
||
|
|
{% endblock %}
|