Führe den gemeinsamen Redaktionsarbeitsplatz ein.
Deploy Test / test (push) Successful in 55s
Deploy Test / deploy (push) Successful in 24s

Texte, Medienzuordnung und Einordnung teilen sich einen Arbeitsplatz. Fassungen, Rechte und das Datenmodell bleiben unverändert.
This commit is contained in:
Lars committed 2026-11-19 14:43:15 +01:00
1 parent a359a5fb69
commit 4c29ab2593
140 files changed
+6705 -201

No files matched your search

@@ -0,0 +1,19 @@
@php($editable = $this->canEditEditorial())
<div class="luf-field">
<label for="artikel-art">Inhaltsart</label>
<select id="artikel-art" wire:model="kindId" @disabled(! $editable)>
<option value="">Keine</option>
@foreach (\App\Domain\Catalog\EditorialContentKind::selectOptions() as $id => $label)
<option value="{{ $id }}">{{ $label }}</option>
@endforeach
</select>
</div>
@foreach ($this->licenseDimensionGroups() as $group)
<fieldset class="luf-checks">
<legend>{{ $group['label'] }}</legend>
@foreach ($group['values'] as $value)
<label><input type="checkbox" value="{{ $value['id'] }}" wire:model="dimensionIds" @disabled(! $editable)> {{ $value['label'] }}</label>
@endforeach
</fieldset>
@endforeach
<p class="luf-note">Die Einordnung des Artikels ändert nicht die Quelle und nicht den Preis.</p>
@@ -0,0 +1,14 @@
@forelse ($this->dimensionGroups() as $group)
<fieldset class="luf-checks">
<legend>{{ $group['label'] }}</legend>
@foreach ($group['values'] as $value)
<label>
<input type="checkbox" value="{{ $value['id'] }}" wire:model="dimensionIds" @disabled(! $this->canEditEditorial())>
{{ $value['label'] }}
</label>
@endforeach
</fieldset>
@empty
<p class="luf-empty">Es sind noch keine fachlichen Themen angelegt.</p>
@endforelse
<p class="luf-note">Die Einordnung steuert die Suche. Sie gibt kein Medium frei und ändert keine Fassung.</p>
@@ -0,0 +1,32 @@
@php
$editable = $this->canEditEditorial();
$options = [
'kinds' => \App\Domain\Catalog\EditorialContentKind::selectOptions(),
'pillars' => \App\Domain\Catalog\Pillar::query()->orderBy('name')->get(['id', 'name']),
'dimensions' => \App\Domain\Catalog\EditorialDimension::forSubject($this->getRecord()),
];
@endphp
<div class="luf-field">
<label for="redaktion-art">Inhaltsart</label>
<select id="redaktion-art" wire:model="kindId" @disabled(! $editable)>
<option value="">Keine</option>
@foreach ($options['kinds'] as $id => $label)
<option value="{{ $id }}">{{ $label }}</option>
@endforeach
</select>
</div>
<fieldset class="luf-checks">
<legend>Fachliche Säulen</legend>
@foreach ($options['pillars'] as $pillar)
<label><input type="checkbox" value="{{ $pillar->id }}" wire:model="pillarIds" @disabled(! $editable)> {{ $pillar->name }}</label>
@endforeach
</fieldset>
@foreach ($options['dimensions'] as $dimension)
<fieldset class="luf-checks">
<legend>{{ $dimension->label }}</legend>
@foreach ($dimension->values as $value)
<label><input type="checkbox" value="{{ $value->id }}" wire:model="dimensionIds" @disabled(! $editable)> {{ $value->label }}</label>
@endforeach
</fieldset>
@endforeach
<p class="luf-note">Inhaltsart, Säule und Einordnung sind keine Dateiart und keine Freigabe.</p>
@@ -0,0 +1,52 @@
@php
$unsaved = $this->redaktionUnsaved();
@endphp
<section class="vw-redaktion" aria-label="Redaktion">
<header class="vw-kopf">
<div>
@if (! empty($zurueckAktion))
<button type="button" class="luf-quiet" wire:click="{{ $zurueckAktion }}">{{ $zurueckLabel }}</button>
@endif
<p class="luf-kicker">Redaktion · {{ $objektArt }}</p>
<h2>{{ $objektTitel }}</h2>
<p class="luf-status" role="status">{{ $unsaved ? 'Änderungen nicht gespeichert' : 'Redaktion entspricht dem gespeicherten Stand' }}</p>
</div>
<div class="luf-actions">
@if ($this->canEditEditorial())
<button type="button" class="luf-primary" wire:click="{{ $speichernAktion }}">Redaktion speichern</button>
@endif
</div>
</header>
<p class="luf-note">{{ $speichernHinweis }}</p>
@php
$meldung = $this->deskFeedback;
if ($meldung === '' && property_exists($this, 'feedback')) {
$meldung = (string) $this->feedback;
}
@endphp
@if ($meldung !== '')
<p class="luf-feedback" role="status">{{ $meldung }}</p>
@endif
<div class="luf-tabs" role="tablist" aria-label="Redaktion">
<button type="button" role="tab" class="luf-quiet" wire:click="$set('redaktionTab', 'texte')" aria-selected="{{ $this->redaktionTab === 'texte' ? 'true' : 'false' }}">Texte</button>
<button type="button" role="tab" class="luf-quiet" wire:click="$set('redaktionTab', 'medien')" aria-selected="{{ $this->redaktionTab === 'medien' ? 'true' : 'false' }}">Präsentationsmedien</button>
<button type="button" role="tab" class="luf-quiet" wire:click="$set('redaktionTab', 'einordnung')" aria-selected="{{ $this->redaktionTab === 'einordnung' ? 'true' : 'false' }}">Einordnung</button>
</div>
@if ($this->redaktionTab === 'medien')
@include('filament.editorial.presentation')
@if ($this->canEditEditorial())
<div class="luf-actions">
@if (! empty($pickerAktion))
<button type="button" class="luf-primary" wire:click="{{ $pickerAktion }}">Medien zuordnen</button>
@endif
</div>
@if (empty($pickerAktion))
@include('filament.editorial.presentation-picker')
@endif
@endif
@elseif ($this->redaktionTab === 'einordnung')
@include($einordnung)
@else
@include($texte)
@endif
</section>
@@ -0,0 +1,29 @@
@php
$profile = $this->editorialProfile('artikel');
$editable = $this->canEditEditorial();
@endphp
<div class="luf-field">
<label for="artikel-arbeit">Interner Arbeitstitel</label>
<input id="artikel-arbeit" type="text" wire:model="workingTitle" @disabled(! $editable)>
</div>
<div class="luf-field">
<label for="artikel-anzeige">Anzeigename <span>{{ $profile->originLabel('display_title') }}</span></label>
<input id="artikel-anzeige" type="text" wire:model="displayTitle" placeholder="{{ $profile->origin('display_title') === 'quelle' ? $profile->value('display_title') : '' }}" @disabled(! $editable)>
</div>
<div class="luf-field">
<label for="artikel-teaser">Teaser <span>{{ $profile->originLabel('teaser') }}</span></label>
<textarea id="artikel-teaser" rows="2" wire:model="teaser" placeholder="{{ $profile->origin('teaser') === 'quelle' ? $profile->value('teaser') : '' }}" @disabled(! $editable)></textarea>
</div>
<div class="luf-field">
<label for="artikel-kurz">Kurzbeschreibung <span>{{ $profile->originLabel('summary') }}</span></label>
<textarea id="artikel-kurz" rows="3" wire:model="summary" placeholder="{{ $profile->origin('summary') === 'quelle' ? $profile->value('summary') : '' }}" @disabled(! $editable)></textarea>
</div>
<div class="luf-field">
<label for="artikel-beschreibung">Ausführliche Beschreibung <span>{{ $profile->originLabel('description') }}</span></label>
<textarea id="artikel-beschreibung" rows="6" wire:model="descriptionText" placeholder="{{ $profile->origin('description') === 'quelle' ? $profile->value('description') : '' }}" @disabled(! $editable)></textarea>
</div>
<div class="luf-field">
<label for="artikel-suche">Suchbegriffe</label>
<input id="artikel-suche" type="text" wire:model="searchTerms" @disabled(! $editable)>
</div>
@include('filament.editorial.variants')
@@ -0,0 +1,26 @@
<div class="luf-field">
<label for="redaktion-name">Name in der Verwaltung</label>
<input id="redaktion-name" type="text" wire:model="designation" @disabled(! $this->canEditEditorial())>
</div>
<div class="luf-field">
<label for="redaktion-anzeige">Titel</label>
<input id="redaktion-anzeige" type="text" wire:model="displayTitle" placeholder="Leer lässt den Namen stehen" @disabled(! $this->canEditEditorial())>
</div>
<div class="luf-field">
<label for="redaktion-teaser">Teaser</label>
<textarea id="redaktion-teaser" rows="2" wire:model="teaser" @disabled(! $this->canEditEditorial())></textarea>
</div>
<div class="luf-field">
<label for="redaktion-kurz">Kurzbeschreibung</label>
<textarea id="redaktion-kurz" rows="3" wire:model="summary" @disabled(! $this->canEditEditorial())></textarea>
</div>
<div class="luf-field">
<label for="redaktion-beschreibung">Ausführliche Beschreibung</label>
<textarea id="redaktion-beschreibung" rows="8" wire:model="description" @disabled(! $this->canEditEditorial())></textarea>
</div>
<div class="luf-field">
<label for="redaktion-suche">Suchbegriffe</label>
<input id="redaktion-suche" type="text" wire:model="searchTerms" placeholder="Begriffe für die Suche" @disabled(! $this->canEditEditorial())>
</div>
<p class="luf-note">Lernziel, Zeit und Material bleiben am Aufbau. Sie werden hier nicht mitgespeichert.</p>
@include('filament.editorial.variants')
@@ -0,0 +1,45 @@
@php
$editable = $this->canEditEditorial();
@endphp
<div class="luf-field">
<label for="redaktion-arbeit">Arbeitstitel</label>
<input id="redaktion-arbeit" type="text" wire:model="workingTitle" @disabled(! $editable) required>
</div>
<div class="luf-field">
<label for="redaktion-anzeige">Anzeigename</label>
<input id="redaktion-anzeige" type="text" wire:model="displayTitle" @disabled(! $editable)>
</div>
<div class="luf-field">
<label for="redaktion-teaser">Teaser</label>
<textarea id="redaktion-teaser" rows="2" wire:model="teaser" @disabled(! $editable)></textarea>
</div>
<div class="luf-field">
<label for="redaktion-kurz">Kurzbeschreibung</label>
<textarea id="redaktion-kurz" rows="3" wire:model="summary" @disabled(! $editable)></textarea>
</div>
<div class="luf-field">
<label for="redaktion-beschreibung">Ausführliche Beschreibung</label>
<textarea id="redaktion-beschreibung" rows="8" wire:model="descriptionText" @disabled(! $editable)></textarea>
</div>
<div class="luf-field">
<label for="redaktion-suche">Suchbegriffe</label>
<input id="redaktion-suche" type="text" wire:model="searchTerms" placeholder="Begriffe für die Suche, durch Komma getrennt" @disabled(! $editable)>
</div>
<div class="luf-field">
<label for="redaktion-einsatz">Hinweise für den Einsatz</label>
<textarea id="redaktion-einsatz" rows="4" wire:model="usageNote" @disabled(! $editable)></textarea>
</div>
<div class="luf-field">
<label for="redaktion-lizenz">Interner Lizenzvermerk</label>
<textarea id="redaktion-lizenz" rows="4" wire:model="licenseNote" @disabled(! $editable)></textarea>
</div>
<div class="luf-field">
<label for="redaktion-quelle">Quellenzeile für die Website</label>
<textarea id="redaktion-quelle" rows="2" wire:model="websiteCredit" @disabled(! $editable)></textarea>
</div>
<div class="luf-field">
<label for="redaktion-alt">Alternativtext für die Website</label>
<input id="redaktion-alt" type="text" wire:model="websiteAlt" @disabled(! $editable)>
</div>
<p class="luf-note">Diese Angaben gehören zum Medium. Speichern legt keine Inhaltsfassung an. Die Website-Freigabe bleibt eine eigene Handlung in der Medienbearbeitung.</p>
@include('filament.editorial.variants')