feat: pending roles from crm to be confirmed by superadmins
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{{ form_start(form) }}
|
||||
<div class="flex flex-col space-y-4 pb-8">
|
||||
{{ form_row(form.roles) }}
|
||||
{{ form_row(form.superAdmin) }}
|
||||
{{ form_row(form.hotelCodes) }}
|
||||
</div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<button type="submit" class="btn">
|
||||
Speichern
|
||||
</button>
|
||||
<a href="{{ path('app_admin_system_user_index') }}" class="btn btn--secondary">
|
||||
Abbrechen
|
||||
</a>
|
||||
</div>
|
||||
{{ form_rest(form) }}
|
||||
{{ form_end(form) }}
|
||||
@@ -0,0 +1,12 @@
|
||||
{% extends 'admin/layout.html.twig' %}
|
||||
|
||||
{% block title %}Einstellungen - Benutzer:in bearbeiten{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="max-w-screen-sm">
|
||||
<h1 class="text-2xl font-bold pb-8">
|
||||
{{ user.fullName }} bearbeiten
|
||||
</h1>
|
||||
{% include 'admin/system/user/_form.html.twig' %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -56,16 +56,23 @@
|
||||
{{ user.lastLoginAt ? user.lastLoginAt|date('d.m.Y, H:i') : '-' }}
|
||||
</td>
|
||||
<td>
|
||||
{% if is_granted('CAN_IMPERSONATE', user) %}
|
||||
<a href="{{ path('app_index', { '_switch_user': user.email }) }}">
|
||||
{{ icon('mask', 'w-4 h-4') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
<div class="flex items-center space-x-2">
|
||||
{% if is_granted('CAN_IMPERSONATE', user) %}
|
||||
<a href="{{ path('app_index', { '_switch_user': user.email }) }}">
|
||||
{{ icon('mask', 'w-4 h-4') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if is_granted('CAN_EDIT_USER', user) %}
|
||||
<a href="{{ path('app_admin_system_user_edit', { 'id': user.id }) }}">
|
||||
{{ icon('edit') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<td colspan="7">
|
||||
Keine Daten...
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -44,9 +44,6 @@
|
||||
Login
|
||||
</button>
|
||||
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
||||
{% if role is not null %}
|
||||
<input type="hidden" name="_role" value="{{ role }}">
|
||||
{% endif %}
|
||||
</form>
|
||||
<div class="pt-4">
|
||||
<a href="{{ path('app_security_password_reset') }}" class="text-sm underline">
|
||||
|
||||
Reference in New Issue
Block a user