Rollen ausschließen: bei Inhalten (Zielgruppen) und für ganze Module
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m45s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m25s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m21s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m49s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m21s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m30s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m45s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m25s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m21s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m49s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m21s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m30s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
19193b850b
commit
1877a0922f
113 changed files with 699 additions and 428 deletions
|
|
@ -55,6 +55,7 @@ const ruleGroups = computed(() => [
|
|||
{ key: 'role', label: 'Rollen', options: editor.audienceOptions.role },
|
||||
{ key: 'department', label: 'Abteilungen', options: editor.audienceOptions.department.map((value) => ({ value, label: value })) },
|
||||
{ key: 'location', label: 'Standorte', options: editor.audienceOptions.location.map((value) => ({ value, label: value })) },
|
||||
{ key: 'exclude_role', label: 'Ausgeschlossene Rollen', hint: 'Sehen den Block nie – auch wenn oben etwas passt.', options: editor.audienceOptions.role },
|
||||
].filter((group) => group.options.length));
|
||||
</script>
|
||||
|
||||
|
|
@ -117,6 +118,7 @@ const ruleGroups = computed(() => [
|
|||
<p class="text-xs text-muted-foreground">Leer = für alle, die die Seite sehen. Sonst nur für Personen, die mindestens eine Angabe erfüllen.</p>
|
||||
<fieldset v-for="group in ruleGroups" :key="group.key" class="grid gap-1">
|
||||
<legend class="mb-1 text-xs font-semibold text-muted-foreground">{{ group.label }}</legend>
|
||||
<p v-if="group.hint" class="-mt-1 mb-1 text-[11px] text-muted-foreground">{{ group.hint }}</p>
|
||||
<div class="grid max-h-36 gap-0.5 overflow-y-auto">
|
||||
<label v-for="option in group.options" :key="option.value" class="flex items-center gap-2 rounded px-1 py-0.5 text-[13px] hover:bg-accent">
|
||||
<input
|
||||
|
|
|
|||
|
|
@ -38,6 +38,10 @@
|
|||
<div class="ih-problem">{{ $plugin['problem'] }}</div>
|
||||
@endif
|
||||
|
||||
@if ($plugin['excluded'])
|
||||
<div class="ih-meta">Ausgeschlossen: {{ implode(', ', $plugin['excluded']) }}</div>
|
||||
@endif
|
||||
|
||||
<div class="ih-actions">
|
||||
@if ($plugin['enabled'])
|
||||
<x-filament::button size="sm" color="gray" wire:click="deactivate('{{ $m->slug }}')" :disabled="$plugin['dependents'] !== []"
|
||||
|
|
@ -51,6 +55,10 @@
|
|||
<x-filament::button size="sm" wire:click="activate('{{ $m->slug }}')">Aktivieren</x-filament::button>
|
||||
@endif
|
||||
|
||||
@if ($plugin['accessible'])
|
||||
{{ ($this->accessAction)(['slug' => $m->slug]) }}
|
||||
@endif
|
||||
|
||||
@if (! $m->core && $uploadsAllowed)
|
||||
<x-filament::button size="sm" color="danger" outlined wire:click="delete('{{ $m->slug }}', false)"
|
||||
wire:confirm="„{{ $m->name }}“ löschen? Die Daten des Plugins bleiben in der Datenbank.">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue