-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from zediious/frontend-tweaks
Frontend tweaks
- Loading branch information
Showing
45 changed files
with
1,173 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<div class="container"> | ||
<header class="card bg-dark opacity-75 text-white p-4 mt-4"> | ||
<h3 class="pageHeader fw-bold text-center">You do not have permission to manage this resource</h3> | ||
<h3 class="pageHeader fw-bold text-center"> | ||
You do not have permission to manage this resource | ||
</h3> | ||
</header> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<div class="container"> | ||
<header class="card bg-dark opacity-75 text-white p-4 mt-4"> | ||
<h3 class="pageHeader fw-bold text-center">A User with with the requested username was not found</h3> | ||
<h3 class="pageHeader fw-bold text-center"> | ||
A User with with the requested username was not found | ||
</h3> | ||
</header> | ||
</div> | ||
</div> |
36 changes: 24 additions & 12 deletions
36
raptorWeb/templates/authprofiles/password_reset_email_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
{% load static %} | ||
{% load django_bootstrap5 %} | ||
|
||
<form id="password_reset_email_form_alone" class="form p-3 text-white" hx-post="{% url 'authprofiles:reset_password_form' %}" hx-swap="outerHTML" hx-target="#password_reset_email_form_alone"> | ||
<div class="d-flex justify-content-center"> | ||
<img id="passwordResetSpinner" | ||
class="htmx-indicator w-25 mt-3" | ||
src="{% static 'image/three-dots.svg' %}" | ||
alt="Loading..."> | ||
</div> | ||
|
||
<form id="password_reset_email_form_alone" class="form p-3 text-white" | ||
hx-post="{% url 'authprofiles:reset_password_form' %}" | ||
hx-swap="outerHTML" | ||
hx-target="#password_reset_email_form_alone" | ||
hx-indicator="#passwordResetSpinner" | ||
> | ||
|
||
{% if messages %} | ||
<ul class="messages alert alert-warning"> | ||
{% for message in messages %} | ||
{{message}} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% if messages %} | ||
<ul class="messages alert alert-warning"> | ||
{% for message in messages %} | ||
{{message}} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
|
||
{% csrf_token %} | ||
{{ form.captcha }} | ||
{% bootstrap_form password_reset_form %} | ||
{% bootstrap_button button_type="submit" content="Send Reset Link" %} | ||
{% csrf_token %} | ||
{{ form.captcha }} | ||
{% bootstrap_form password_reset_form %} | ||
{% bootstrap_button button_type="submit" content="Send Reset Link" %} | ||
|
||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
raptorWeb/templates/authprofiles/profile_dropdown_auth.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{% load static %} | ||
|
||
<div class="float-end h-100 d-flex"> | ||
<div class="dropstart m-auto"> | ||
<button class="btn dropdown-toggle d-flex" data-bs-toggle="dropdown" aria-expanded="false"> | ||
<div id="profile_picture_box"> | ||
{% if loaded_user.user_profile_info.profile_picture %} | ||
{% if loaded_user.is_staff %} | ||
<img id="profilePicture" class="border border-danger border-2 w-100" | ||
src="{{ loaded_user.user_profile_info.profile_picture.url }}" | ||
alt="Profile" | ||
onerror=this.src="{% static 'image/no_user.webp' %}"> | ||
{% else %} | ||
<img id="profilePicture" class="border border-secondary border-2 w-100" | ||
src="{{ loaded_user.user_profile_info.profile_picture.url }}" | ||
alt="Profile" | ||
onerror=this.src="{% static 'image/no_user.webp' %}"> | ||
{% endif %} | ||
{% else %} | ||
{% if loaded_user.is_staff %} | ||
<img id="noProfilePicture" class="border border-danger border-2 w-100" | ||
src="{% static 'image/no_user.webp' %}" | ||
alt="Profile"> | ||
{% else %} | ||
<img id="noProfilePicture" class="border border-secondary border-2 w-100" | ||
src="{% static 'image/no_user.webp' %}" | ||
alt="Profile"> | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
</button> | ||
<div class="dropdown-menu bg-dark"> | ||
<div><span class="text-center text-white"> | ||
<p class="text-white m-1">Welcome, {{user}}</p> | ||
</span></div> | ||
<hr style="color: white"> | ||
<div> | ||
<a class="dropdown-item text-white mt-0 pt-0 htmxLink" | ||
hx-get="/raptormc/api/html/{{user_path}}/{{user.get_username|slugify}}" | ||
hx-target='#home' | ||
hx-push-url='/{{user_path}}/{{user.get_username|slugify}}' | ||
> | ||
Profile | ||
</a> | ||
</div> | ||
{% if user.is_staff %} | ||
<div><a class="dropdown-item text-white" href="{% url 'admin:index' %}"> | ||
Admin | ||
</a></div> | ||
{% endif %} | ||
<div><a class="dropdown-item text-white" href="{% url 'authprofiles:logout' %}"> | ||
Logout | ||
</a></div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.