|
1
|
<div id="team-member-table"> |
|
2
|
<div class="overflow-x-auto rounded-lg border border-gray-700 bg-gray-800 shadow-sm"> |
|
3
|
<table class="min-w-full divide-y divide-gray-700"> |
|
4
|
<thead class="bg-gray-900/80"> |
|
5
|
<tr> |
|
6
|
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Username</th> |
|
7
|
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Email</th> |
|
8
|
<th class="px-6 py-3 text-right text-xs font-medium uppercase tracking-wider text-gray-400">Actions</th> |
|
9
|
</tr> |
|
10
|
</thead> |
|
11
|
<tbody class="divide-y divide-gray-700/70 bg-gray-800"> |
|
12
|
{% for member in team_members %} |
|
13
|
<tr class="hover:bg-gray-700/40 transition-colors"> |
|
14
|
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-100">{{ member.username }}</td> |
|
15
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">{{ member.email|default:"—" }}</td> |
|
16
|
<td class="px-6 py-4 whitespace-nowrap text-right text-sm"> |
|
17
|
{% if perms.organization.change_team %} |
|
18
|
<a href="{% url 'organization:team_member_remove' slug=team.slug username=member.username %}" class="text-red-400 hover:text-red-300">Remove</a> |
|
19
|
{% endif %} |
|
20
|
</td> |
|
21
|
</tr> |
|
22
|
{% empty %} |
|
23
|
<tr> |
|
24
|
<td colspan="3" class="px-6 py-8 text-center text-sm text-gray-400">No members yet.</td> |
|
25
|
</tr> |
|
26
|
{% endfor %} |
|
27
|
</tbody> |
|
28
|
</table> |
|
29
|
</div> |
|
30
|
</div> |
|
31
|
|