changed update to change

This commit is contained in:
DaanoGames
2025-04-16 15:06:54 +02:00
parent c95d865454
commit f268768a25
2 changed files with 12 additions and 12 deletions

View File

@@ -18,25 +18,25 @@ Add service
</symbol>
</svg>
{% if feedback %}
{% if feedback=="Service succesfully added" %}
<div class="alert alert-success d-flex align-items-center" role="alert">
{% if feedback=="Service succesfully added" %}
<div class="alert alert-success d-flex align-items-center" role="alert">
<svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Success:">
<use xlink:href="#check-circle-fill" />
</svg>
<div>
{{feedback}}
<div>
{{feedback}}
</div>
</div>
</div>
{% else %}
<div class="alert alert-danger d-flex align-items-center" role="alert">
{% else %}
<div class="alert alert-danger d-flex align-items-center" role="alert">
<svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Danger:">
<use xlink:href="#exclamation-triangle-fill" />
</svg>
<div>
{{feedback}}
<div>
{{feedback}}
</div>
</div>
</div>
{% endif %}
{% endif %}
{% endif %}
<div>
{{ form.name.label }} <br> {{ form.name() }}

View File

@@ -43,7 +43,7 @@
</button>
<ul class="dropdown-menu dropdown-menu-end dropdown-menu-lg-start" aria-labelledby="dropdownMenuButton1">
<li class="dropdown-item">Username: {{current_user.username}} </li>
<li><a class="dropdown-item {% if active_page == 'update' %}active{% endif %}" href="{{url_for('auth.update')}}">Update password</a></li>
<li><a class="dropdown-item {% if active_page == 'update' %}active{% endif %}" href="{{url_for('auth.update')}}">Change password</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" style="color: tomato;" data-bs-theme="dark" href="{{url_for('auth.logout')}}">Logout</a></li>
</ul>