Rebrand Hub+Flux
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
Kevin Adametz 2026-05-20 15:44:15 +02:00
parent 0a3e52d603
commit 9b47296cea
130 changed files with 9357 additions and 3345 deletions

View file

@ -97,47 +97,69 @@ new #[Layout('components.layouts.app'), Title('Rolle bearbeiten')] class extends
}
}; ?>
<form wire:submit="save" class="space-y-6">
<flux:card>
<div class="flex items-center justify-between gap-4">
<div>
<flux:heading size="lg">{{ __('Rolle bearbeiten') }}</flux:heading>
<flux:subheading>{{ __('ID') }}: {{ $id }} | {{ __('Guard') }}: {{ $guardName }}</flux:subheading>
<form wire:submit="save" class="space-y-8">
{{-- ============== PAGE HEADER ============== --}}
<header class="grid items-end gap-8" style="grid-template-columns:1fr auto;">
<div class="min-w-0">
<div class="flex items-center gap-3 mb-3 flex-wrap">
<span class="badge hub dot">{{ __('Admin Backend') }}</span>
<span class="eyebrow muted">{{ __('Administration · Sicherheit · Rollen') }}</span>
<span class="badge hub">ID #{{ $id }}</span>
<span class="badge hub">{{ __('Guard') }}: {{ $guardName }}</span>
@if ($isSystemRole)
<span class="badge hub dot">{{ __('Systemrolle') }}</span>
@endif
</div>
@if($isSystemRole)
<flux:badge color="purple" size="sm">{{ __('Systemrolle') }}</flux:badge>
@endif
<h1 class="text-[30px] font-bold tracking-[-0.6px] leading-[1.15] m-0 text-[color:var(--color-ink)]">
{{ __('Rolle bearbeiten') }}
</h1>
</div>
</flux:card>
@if($isSystemRole)
<flux:card>
<flux:text class="text-sm text-zinc-600 dark:text-zinc-300">
<div class="flex items-center gap-2 flex-shrink-0">
<flux:button variant="ghost" icon="arrow-left" href="{{ route('admin.roles.index') }}" wire:navigate>
{{ __('Zurück') }}
</flux:button>
</div>
</header>
@if ($isSystemRole)
<div class="px-4 py-3 rounded-[5px] border text-[12.5px] flex items-start gap-3
bg-[color:var(--color-warn-soft)] border-[color:var(--color-warn)]/30 text-[color:var(--color-ink-2)]">
<flux:icon.exclamation-triangle class="size-[16px] flex-shrink-0 mt-0.5 text-[color:var(--color-accent-deep)]" />
<div class="flex-1">
{{ __('Hinweis: Diese Rolle ist Teil des Basis-Setups. Aenderungen wirken sich direkt auf den Admin-Zugriff aus.') }}
</flux:text>
</flux:card>
</div>
</div>
@endif
<flux:card>
<flux:heading size="lg" class="mb-4">{{ __('Basis-Informationen') }}</flux:heading>
<article class="panel">
<div class="panel-head">
<span class="section-eyebrow">{{ __('Basis-Informationen') }}</span>
</div>
<div class="p-5">
<flux:field>
<flux:label>
{{ __('Technischer Name') }}
<span class="text-[color:var(--color-err)]">*</span>
</flux:label>
<flux:input wire:model="name" />
<flux:error name="name" />
</flux:field>
</div>
</article>
<flux:field>
<flux:label>{{ __('Technischer Name') }} <span class="text-red-500">*</span></flux:label>
<flux:input wire:model="name" />
<flux:error name="name" />
</flux:field>
</flux:card>
<flux:card>
<flux:heading size="lg" class="mb-4">{{ __('Berechtigungen') }}</flux:heading>
<div class="space-y-6">
@forelse($permissionGroups as $groupName => $permissionsInGroup)
<article class="panel">
<div class="panel-head">
<span class="section-eyebrow">{{ __('Berechtigungen') }}</span>
</div>
<div class="p-5 space-y-6">
@forelse ($permissionGroups as $groupName => $permissionsInGroup)
<div>
<flux:heading size="md" class="mb-3">{{ $groupName }}</flux:heading>
<div class="text-[11px] uppercase tracking-[0.6px] text-[color:var(--color-ink-3)] font-semibold mb-3">
{{ $groupName }}
</div>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
@foreach($permissionsInGroup as $permission)
@foreach ($permissionsInGroup as $permission)
<flux:checkbox
wire:model="permissions"
value="{{ $permission['name'] }}"
@ -147,15 +169,15 @@ new #[Layout('components.layouts.app'), Title('Rolle bearbeiten')] class extends
</div>
</div>
@empty
<flux:text class="text-sm text-zinc-500">{{ __('Keine Berechtigungen fuer diesen Guard vorhanden.') }}</flux:text>
<p class="text-[12.5px] text-[color:var(--color-ink-3)] m-0">{{ __('Keine Berechtigungen fuer diesen Guard vorhanden.') }}</p>
@endforelse
<flux:error name="permissions" />
</div>
</article>
<flux:error name="permissions" class="mt-4" />
</flux:card>
<flux:card>
<div class="flex justify-end gap-3">
<article class="panel">
<div class="p-5 flex justify-end gap-3">
<flux:button variant="ghost" href="{{ route('admin.roles.index') }}" wire:navigate>
{{ __('Abbrechen') }}
</flux:button>
@ -163,5 +185,5 @@ new #[Layout('components.layouts.app'), Title('Rolle bearbeiten')] class extends
{{ __('Aenderungen speichern') }}
</flux:button>
</div>
</flux:card>
</article>
</form>