Astra OS Ver. 1.3:

- Hotfix des Rollenauswahlmenüs
This commit is contained in:
MrWhiff 2025-12-09 17:40:49 +01:00
parent 1d6ad149b4
commit 72672195c6

View file

@ -77,7 +77,7 @@
<input type="password" name="password" id="password" :required="!userToEdit" :placeholder="userToEdit ? 'Leer lassen, um nicht zu ändern' : ''" class="mt-1 w-full px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg text-white focus:outline-none focus:ring-2 {% if maintenance_active %}focus:ring-yellow-500{% else %}focus:ring-purple-500{% endif %}"> <input type="password" name="password" id="password" :required="!userToEdit" :placeholder="userToEdit ? 'Leer lassen, um nicht zu ändern' : ''" class="mt-1 w-full px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg text-white focus:outline-none focus:ring-2 {% if maintenance_active %}focus:ring-yellow-500{% else %}focus:ring-purple-500{% endif %}">
</div> </div>
<!-- Custom Role Selector --> <!-- Custom Role Selector -->
<div x-data="{ <div x-data='{
open: false, open: false,
roles: {{ roles | tojson }}, roles: {{ roles | tojson }},
selectedRole: null, selectedRole: null,
@ -88,7 +88,7 @@
this.selectedRole = this.roles.length > 0 ? this.roles[0] : null; this.selectedRole = this.roles.length > 0 ? this.roles[0] : null;
} }
} }
}" @click.away="open = false" class="relative"> }' @click.away="open = false" class="relative">
<label class="block text-sm font-medium text-gray-300">Rolle</label> <label class="block text-sm font-medium text-gray-300">Rolle</label>
<input type="hidden" name="role" :value="selectedRole ? selectedRole._id : ''"> <input type="hidden" name="role" :value="selectedRole ? selectedRole._id : ''">
<button type="button" @click="open = !open" class="mt-1 w-full flex justify-between items-center px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg text-white focus:outline-none focus:ring-2 {% if maintenance_active %}focus:ring-yellow-500{% else %}focus:ring-purple-500{% endif %}"> <button type="button" @click="open = !open" class="mt-1 w-full flex justify-between items-center px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg text-white focus:outline-none focus:ring-2 {% if maintenance_active %}focus:ring-yellow-500{% else %}focus:ring-purple-500{% endif %}">
@ -138,5 +138,4 @@
{% endblock %} {% endblock %}
{% block loading %} {% block loading %}
<!-- Optional: Loading-Screen wie im Dashboard, falls gewünscht -->
{% endblock %} {% endblock %}