|
1
|
{% extends "base.html" %} |
|
2
|
{% block title %}{{ team.name }} — Fossilrepo{% endblock %} |
|
3
|
|
|
4
|
{% block content %} |
|
5
|
<div class="mb-6"> |
|
6
|
<a href="{% url 'organization:team_list' %}" class="text-sm text-brand-light hover:text-brand">← Back to Teams</a> |
|
7
|
</div> |
|
8
|
|
|
9
|
<div class="overflow-hidden rounded-lg bg-gray-800 shadow border border-gray-700"> |
|
10
|
<div class="px-6 py-5 sm:flex sm:items-center sm:justify-between"> |
|
11
|
<div> |
|
12
|
<h1 class="text-2xl font-bold text-gray-100">{{ team.name }}</h1> |
|
13
|
<p class="mt-1 text-sm text-gray-400">{{ team.slug }}</p> |
|
14
|
</div> |
|
15
|
<div class="mt-4 flex gap-3 sm:mt-0"> |
|
16
|
{% if perms.organization.change_team %} |
|
17
|
<a href="{% url 'organization:team_update' slug=team.slug %}" |
|
18
|
class="rounded-md bg-gray-700 px-3 py-2 text-sm font-semibold text-gray-100 shadow-sm ring-1 ring-inset ring-gray-600 hover:bg-gray-600"> |
|
19
|
Edit |
|
20
|
</a> |
|
21
|
{% endif %} |
|
22
|
{% if perms.organization.delete_team %} |
|
23
|
<a href="{% url 'organization:team_delete' slug=team.slug %}" |
|
24
|
class="rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500"> |
|
25
|
Delete |
|
26
|
</a> |
|
27
|
{% endif %} |
|
28
|
</div> |
|
29
|
</div> |
|
30
|
|
|
31
|
<div class="border-t border-gray-700 px-6 py-5"> |
|
32
|
<dl class="grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-2"> |
|
33
|
<div class="sm:col-span-2"> |
|
34
|
<dt class="text-sm font-medium text-gray-400">Description</dt> |
|
35
|
<dd class="mt-1 text-sm text-gray-100">{{ team.description|default:"No description." }}</dd> |
|
36
|
</div> |
|
37
|
<div> |
|
38
|
<dt class="text-sm font-medium text-gray-400">GUID</dt> |
|
39
|
<dd class="mt-1 text-sm text-gray-400 font-mono">{{ team.guid }}</dd> |
|
40
|
</div> |
|
41
|
<div> |
|
42
|
<dt class="text-sm font-medium text-gray-400">Created</dt> |
|
43
|
<dd class="mt-1 text-sm text-gray-400">{{ team.created_at|date:"N j, Y g:i a" }} by {{ team.created_by|default:"system" }}</dd> |
|
44
|
</div> |
|
45
|
</dl> |
|
46
|
</div> |
|
47
|
</div> |
|
48
|
|
|
49
|
<div class="mt-8"> |
|
50
|
<div class="md:flex md:items-center md:justify-between mb-4"> |
|
51
|
<h2 class="text-lg font-semibold text-gray-100">Team Members</h2> |
|
52
|
{% if perms.organization.change_team %} |
|
53
|
<a href="{% url 'organization:team_member_add' slug=team.slug %}" |
|
54
|
class="mt-4 md:mt-0 inline-flex items-center rounded-md bg-brand px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-brand-hover"> |
|
55
|
Add Member |
|
56
|
</a> |
|
57
|
{% endif %} |
|
58
|
</div> |
|
59
|
|
|
60
|
{% include "organization/partials/team_member_table.html" %} |
|
61
|
</div> |
|
62
|
{% endblock %} |
|
63
|
|