FossilRepo

fossilrepo / templates / organization / user_password.html
Source Blame History 41 lines
c588255… ragelink 1 {% extends "base.html" %}
c588255… ragelink 2 {% block title %}Change Password — {{ target_user.username }} — Fossilrepo{% endblock %}
c588255… ragelink 3
c588255… ragelink 4 {% block content %}
c588255… ragelink 5 <div class="mb-6">
c588255… ragelink 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>
c588255… ragelink 7 </div>
c588255… ragelink 8
c588255… ragelink 9 <div class="mx-auto max-w-2xl">
c588255… ragelink 10 <h1 class="text-2xl font-bold text-gray-100 mb-6">Change Password for {{ target_user.username }}</h1>
c588255… ragelink 11
c588255… ragelink 12 <form method="post" class="space-y-6 rounded-lg bg-gray-800 p-6 shadow border border-gray-700">
c588255… ragelink 13 {% csrf_token %}
c588255… ragelink 14
c588255… ragelink 15 {% for field in form %}
c588255… ragelink 16 <div>
c588255… ragelink 17 <label for="{{ field.id_for_label }}" class="block text-sm font-medium text-gray-300">
c588255… ragelink 18 {{ field.label }}{% if field.field.required %} <span class="text-red-400">*</span>{% endif %}
c588255… ragelink 19 </label>
c588255… ragelink 20 <div class="mt-1">{{ field }}</div>
c588255… ragelink 21 {% if field.errors %}
c588255… ragelink 22 <p class="mt-1 text-sm text-red-400">{{ field.errors.0 }}</p>
c588255… ragelink 23 {% endif %}
c588255… ragelink 24 </div>
c588255… ragelink 25 {% endfor %}
c588255… ragelink 26
c588255… ragelink 27 <p class="text-sm text-gray-500">Password must be at least 8 characters and not entirely numeric or too common.</p>
c588255… ragelink 28
c588255… ragelink 29 <div class="flex justify-end gap-3 pt-4">
c588255… ragelink 30 <a href="{% url 'organization:user_detail' username=target_user.username %}"
c588255… ragelink 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">
c588255… ragelink 32 Cancel
c588255… ragelink 33 </a>
c588255… ragelink 34 <button type="submit"
c588255… ragelink 35 class="rounded-md bg-brand px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-brand-hover">
c588255… ragelink 36 Change Password
c588255… ragelink 37 </button>
c588255… ragelink 38 </div>
c588255… ragelink 39 </form>
c588255… ragelink 40 </div>
c588255… ragelink 41 {% endblock %}

Keyboard Shortcuts

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