|
1
|
{% extends "base.html" %} |
|
2
|
{% block title %}Settings — Fossilrepo{% endblock %} |
|
3
|
|
|
4
|
{% block content %} |
|
5
|
<div class="md:flex md:items-center md:justify-between mb-6"> |
|
6
|
<h1 class="text-2xl font-bold text-gray-100">Organization Settings</h1> |
|
7
|
{% if perms.organization.change_organization %} |
|
8
|
<a href="{% url 'organization:settings_edit' %}" |
|
9
|
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"> |
|
10
|
Edit Settings |
|
11
|
</a> |
|
12
|
{% endif %} |
|
13
|
</div> |
|
14
|
|
|
15
|
<div class="overflow-hidden rounded-lg bg-gray-800 shadow border border-gray-700"> |
|
16
|
<div class="px-6 py-5"> |
|
17
|
<dl class="grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-2"> |
|
18
|
<div> |
|
19
|
<dt class="text-sm font-medium text-gray-400">Name</dt> |
|
20
|
<dd class="mt-1 text-sm text-gray-100">{{ org.name }}</dd> |
|
21
|
</div> |
|
22
|
<div> |
|
23
|
<dt class="text-sm font-medium text-gray-400">Slug</dt> |
|
24
|
<dd class="mt-1 text-sm text-gray-400 font-mono">{{ org.slug }}</dd> |
|
25
|
</div> |
|
26
|
<div> |
|
27
|
<dt class="text-sm font-medium text-gray-400">Website</dt> |
|
28
|
<dd class="mt-1 text-sm text-gray-100">{{ org.website|default:"—" }}</dd> |
|
29
|
</div> |
|
30
|
<div> |
|
31
|
<dt class="text-sm font-medium text-gray-400">GUID</dt> |
|
32
|
<dd class="mt-1 text-sm text-gray-400 font-mono">{{ org.guid }}</dd> |
|
33
|
</div> |
|
34
|
<div class="sm:col-span-2"> |
|
35
|
<dt class="text-sm font-medium text-gray-400">Description</dt> |
|
36
|
<dd class="mt-1 text-sm text-gray-100">{{ org.description|default:"No description." }}</dd> |
|
37
|
</div> |
|
38
|
<div> |
|
39
|
<dt class="text-sm font-medium text-gray-400">Created</dt> |
|
40
|
<dd class="mt-1 text-sm text-gray-400">{{ org.created_at|date:"N j, Y g:i a" }}</dd> |
|
41
|
</div> |
|
42
|
<div> |
|
43
|
<dt class="text-sm font-medium text-gray-400">Updated</dt> |
|
44
|
<dd class="mt-1 text-sm text-gray-400">{{ org.updated_at|date:"N j, Y g:i a" }}</dd> |
|
45
|
</div> |
|
46
|
</dl> |
|
47
|
</div> |
|
48
|
</div> |
|
49
|
|
|
50
|
<div class="mt-8"> |
|
51
|
<div class="md:flex md:items-center md:justify-between mb-4"> |
|
52
|
<h2 class="text-lg font-semibold text-gray-100">Members</h2> |
|
53
|
<div class="flex gap-3 mt-4 md:mt-0"> |
|
54
|
{% if perms.organization.view_organizationmember %} |
|
55
|
<a href="{% url 'organization:members' %}" |
|
56
|
class="inline-flex items-center 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"> |
|
57
|
Manage Members |
|
58
|
</a> |
|
59
|
{% endif %} |
|
60
|
</div> |
|
61
|
</div> |
|
62
|
</div> |
|
63
|
|
|
64
|
<div class="mt-4"> |
|
65
|
<div class="md:flex md:items-center md:justify-between mb-4"> |
|
66
|
<h2 class="text-lg font-semibold text-gray-100">Teams</h2> |
|
67
|
<div class="flex gap-3 mt-4 md:mt-0"> |
|
68
|
{% if perms.organization.view_team %} |
|
69
|
<a href="{% url 'organization:team_list' %}" |
|
70
|
class="inline-flex items-center 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"> |
|
71
|
Manage Teams |
|
72
|
</a> |
|
73
|
{% endif %} |
|
74
|
</div> |
|
75
|
</div> |
|
76
|
</div> |
|
77
|
|
|
78
|
<div class="mt-4"> |
|
79
|
<div class="md:flex md:items-center md:justify-between mb-4"> |
|
80
|
<h2 class="text-lg font-semibold text-gray-100">Roles</h2> |
|
81
|
<div class="flex gap-3 mt-4 md:mt-0"> |
|
82
|
{% if perms.organization.view_organization %} |
|
83
|
<a href="{% url 'organization:role_list' %}" |
|
84
|
class="inline-flex items-center 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"> |
|
85
|
Manage Roles |
|
86
|
</a> |
|
87
|
{% endif %} |
|
88
|
</div> |
|
89
|
</div> |
|
90
|
</div> |
|
91
|
{% endblock %} |
|
92
|
|