FossilRepo
Add Change Password button to user profile page
Commit
9ef0d0fc02b32686a49720009be182c565f96736974265f8c0aac833be7a9256
Parent
422c5d61224793c…
1 file changed
+10
-4
+10
-4
| --- templates/accounts/profile.html | ||
| +++ templates/accounts/profile.html | ||
| @@ -16,14 +16,20 @@ | ||
| 16 | 16 | <span>@{{ user_profile.handle }}</span> |
| 17 | 17 | {% endif %} |
| 18 | 18 | <span>{{ user.email }}</span> |
| 19 | 19 | </div> |
| 20 | 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> | |
| 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> | |
| 25 | 31 | </div> |
| 26 | 32 | |
| 27 | 33 | <!-- Profile Info Card --> |
| 28 | 34 | <div class="rounded-lg bg-gray-800 border border-gray-700 p-6 mb-6"> |
| 29 | 35 | <h2 class="text-lg font-semibold text-gray-200 mb-4">Profile Info</h2> |
| 30 | 36 |
| --- 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 |