FossilRepo

fossilrepo / templates / organization / team_member_add.html
1
{% extends "base.html" %}
2
{% block title %}Add Member to {{ team.name }} — Fossilrepo{% endblock %}
3
4
{% block content %}
5
<div class="mb-6">
6
<a href="{% url 'organization:team_detail' slug=team.slug %}" class="text-sm text-brand-light hover:text-brand">&larr; Back to {{ team.name }}</a>
7
</div>
8
9
<div class="mx-auto max-w-2xl">
10
<h1 class="text-2xl font-bold text-gray-100 mb-6">Add Member to {{ team.name }}</h1>
11
12
<form method="post" class="space-y-6 rounded-lg bg-gray-800 p-6 shadow border border-gray-700">
13
{% csrf_token %}
14
15
{% for field in form %}
16
<div>
17
<label for="{{ field.id_for_label }}" class="block text-sm font-medium text-gray-300">
18
{{ field.label }}{% if field.field.required %} <span class="text-red-400">*</span>{% endif %}
19
</label>
20
<div class="mt-1">{{ field }}</div>
21
{% if field.errors %}
22
<p class="mt-1 text-sm text-red-400">{{ field.errors.0 }}</p>
23
{% endif %}
24
</div>
25
{% endfor %}
26
27
<div class="flex justify-end gap-3 pt-4">
28
<a href="{% url 'organization:team_detail' slug=team.slug %}"
29
class="rounded-md bg-gray-700 px-4 py-2 text-sm font-semibold text-gray-100 shadow-sm ring-1 ring-inset ring-gray-600 hover:bg-gray-600">
30
Cancel
31
</a>
32
<button type="submit"
33
class="rounded-md bg-brand px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-brand-hover">
34
Add Member
35
</button>
36
</div>
37
</form>
38
</div>
39
{% endblock %}
40

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button