FossilRepo

fossilrepo / templates / organization / user_password.html
1
{% extends "base.html" %}
2
{% block title %}Change Password — {{ target_user.username }} — Fossilrepo{% endblock %}
3
4
{% block content %}
5
<div class="mb-6">
6
<a href="{% url 'organization:user_detail' username=target_user.username %}" class="text-sm text-brand-light hover:text-brand">&larr; Back to {{ target_user.username }}</a>
7
</div>
8
9
<div class="mx-auto max-w-2xl">
10
<h1 class="text-2xl font-bold text-gray-100 mb-6">Change Password for {{ target_user.username }}</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
<p class="text-sm text-gray-500">Password must be at least 8 characters and not entirely numeric or too common.</p>
28
29
<div class="flex justify-end gap-3 pt-4">
30
<a href="{% url 'organization:user_detail' username=target_user.username %}"
31
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">
32
Cancel
33
</a>
34
<button type="submit"
35
class="rounded-md bg-brand px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-brand-hover">
36
Change Password
37
</button>
38
</div>
39
</form>
40
</div>
41
{% endblock %}
42

Keyboard Shortcuts

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