feat: profile page for administrative users and muting of notifications
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{% extends 'administrative/layout.html.twig' %}
|
||||
|
||||
{% block title %}Benutzerprofil {{ user }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-2xl font-bold pb-8">
|
||||
Benutzerprofil und -einstellungen
|
||||
</h1>
|
||||
<p class="pb-8">
|
||||
Meine Rolle(n): {{ user.rolesLabels|join(', ') }}
|
||||
<br>
|
||||
Mein Vertragspartner: {{ user.hotelCode | default('-') }}
|
||||
</p>
|
||||
<h2 class="text-lg font-bold pb-2">
|
||||
Einstellungen
|
||||
</h2>
|
||||
{{ form_start(form) }}
|
||||
<div class="flex flex-col space-y-4 pb-4">
|
||||
{{ form_row(form.muteNotifications) }}
|
||||
</div>
|
||||
<button type="submit" class="btn">
|
||||
speichern
|
||||
</button>
|
||||
{{ form_rest(form) }}
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
||||
@@ -14,6 +14,10 @@
|
||||
class="h-8 w-auto rounded-full"
|
||||
alt="{{ app.user.teamer.firstName }}">
|
||||
</a>
|
||||
{% elseif is_granted('ROLE_ADMINISTRATIVE') %}
|
||||
<a href="{{ path('app_administrative_profile_index') }}" title="Mein Profil">
|
||||
{{ icon('user', 'w-8 h-8') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
<button type="button"
|
||||
class="lg:hidden"
|
||||
|
||||
Reference in New Issue
Block a user