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