FossilRepo

Add Change Password button to user profile page

lmata 2026-04-07 19:00 trunk
Commit 9ef0d0fc02b32686a49720009be182c565f96736974265f8c0aac833be7a9256
--- templates/accounts/profile.html
+++ templates/accounts/profile.html
@@ -16,14 +16,20 @@
1616
<span>@{{ user_profile.handle }}</span>
1717
{% endif %}
1818
<span>{{ user.email }}</span>
1919
</div>
2020
</div>
21
- <a href="{% url 'accounts:profile_edit' %}"
22
- class="rounded-md bg-gray-700 px-4 py-2 text-sm font-semibold text-gray-200 hover:bg-gray-600">
23
- Edit Profile
24
- </a>
21
+ <div class="flex items-center gap-2">
22
+ <a href="{% url 'accounts:profile_edit' %}"
23
+ class="rounded-md bg-gray-700 px-4 py-2 text-sm font-semibold text-gray-200 hover:bg-gray-600">
24
+ Edit Profile
25
+ </a>
26
+ <a href="{% url 'organization:user_password' username=user.username %}"
27
+ class="rounded-md bg-gray-800 px-4 py-2 text-sm font-medium text-gray-400 hover:text-gray-200 hover:bg-gray-700 ring-1 ring-gray-700">
28
+ Change Password
29
+ </a>
30
+ </div>
2531
</div>
2632
2733
<!-- Profile Info Card -->
2834
<div class="rounded-lg bg-gray-800 border border-gray-700 p-6 mb-6">
2935
<h2 class="text-lg font-semibold text-gray-200 mb-4">Profile Info</h2>
3036
--- templates/accounts/profile.html
+++ templates/accounts/profile.html
@@ -16,14 +16,20 @@
16 <span>@{{ user_profile.handle }}</span>
17 {% endif %}
18 <span>{{ user.email }}</span>
19 </div>
20 </div>
21 <a href="{% url 'accounts:profile_edit' %}"
22 class="rounded-md bg-gray-700 px-4 py-2 text-sm font-semibold text-gray-200 hover:bg-gray-600">
23 Edit Profile
24 </a>
 
 
 
 
 
 
25 </div>
26
27 <!-- Profile Info Card -->
28 <div class="rounded-lg bg-gray-800 border border-gray-700 p-6 mb-6">
29 <h2 class="text-lg font-semibold text-gray-200 mb-4">Profile Info</h2>
30
--- templates/accounts/profile.html
+++ templates/accounts/profile.html
@@ -16,14 +16,20 @@
16 <span>@{{ user_profile.handle }}</span>
17 {% endif %}
18 <span>{{ user.email }}</span>
19 </div>
20 </div>
21 <div class="flex items-center gap-2">
22 <a href="{% url 'accounts:profile_edit' %}"
23 class="rounded-md bg-gray-700 px-4 py-2 text-sm font-semibold text-gray-200 hover:bg-gray-600">
24 Edit Profile
25 </a>
26 <a href="{% url 'organization:user_password' username=user.username %}"
27 class="rounded-md bg-gray-800 px-4 py-2 text-sm font-medium text-gray-400 hover:text-gray-200 hover:bg-gray-700 ring-1 ring-gray-700">
28 Change Password
29 </a>
30 </div>
31 </div>
32
33 <!-- Profile Info Card -->
34 <div class="rounded-lg bg-gray-800 border border-gray-700 p-6 mb-6">
35 <h2 class="text-lg font-semibold text-gray-200 mb-4">Profile Info</h2>
36

Keyboard Shortcuts

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