Files
laraundfelix/resources/views/filament/media/editor-panels.blade.php
T
LarsandCursor 7b325f0d66
CI Feature / test (push) Successful in 53s
Deploy Test / test (push) Successful in 48s
Deploy Test / deploy (push) Successful in 22s
Lasse Präsentationsmedien ohne Inhaltsfassung zu.
Bilder, Filme und Hörstücke lassen sich zuordnen und für die Website freigeben, ohne eine fachliche Fassung anzulegen. Unterrichtsfilme behalten die Teaserfassung an ihrer bereitgestellten Fassung.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-19 08:20:35 +01:00

136 lines
7.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@php
$fokus = $this->bereich;
$editable = \App\Filament\Resources\ContentElements\ContentElementResource::editor();
$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>
@if ($this->editorialFeedback !== '')
<p class="luf-editor-status" role="status">{{ $this->editorialFeedback }}</p>
@endif
@if ($fokus === 'beschreibung')
<div class="luf-editor-split">
<form wire:submit="saveEditorial">
<p class="luf-editor-lead">Karten zeigen den Anzeigenamen und die Kurzbeschreibung. Die ausführliche Beschreibung und der Vermerk bleiben in der Verwaltung.</p>
<div class="luf-editor-fields">
<label>Arbeitstitel
<input type="text" wire:model.live.debounce.300ms="workingTitle" @disabled(! $editable) required>
</label>
<label>Anzeigename
<input type="text" wire:model.live.debounce.300ms="displayTitle" @disabled(! $editable)>
</label>
<label class="is-wide">Teaser
<textarea rows="2" wire:model.live.debounce.300ms="teaser" @disabled(! $editable)></textarea>
</label>
<label class="is-wide">Kurzbeschreibung
<textarea rows="3" wire:model.live.debounce.300ms="summary" @disabled(! $editable)></textarea>
</label>
<label class="is-wide">Beschreibung
<textarea rows="6" wire:model.live.debounce.300ms="descriptionText" @disabled(! $editable)></textarea>
</label>
<label class="is-wide">Suchbegriffe
<input type="text" wire:model="searchTerms" @disabled(! $editable) placeholder="Begriffe für die Suche, durch Komma getrennt">
</label>
<label>Hinweise für den Einsatz
<textarea rows="4" wire:model.live.debounce.300ms="usageNote" @disabled(! $editable)></textarea>
</label>
<label>Interner Lizenzvermerk
<textarea rows="4" wire:model="licenseNote" @disabled(! $editable)></textarea>
</label>
<label class="is-wide">Quellenzeile für die Website
<textarea rows="2" wire:model="websiteCredit" @disabled(! $editable)></textarea>
</label>
<label>Alternativtext für die Website
<input type="text" wire:model="websiteAlt" @disabled(! $editable)>
</label>
<label>Inhaltsart
<select wire:model.live="kindId" @disabled(! $editable)>
<option value="">Keine</option>
@foreach ($options['kinds'] as $id => $label)
<option value="{{ $id }}">{{ $label }}</option>
@endforeach
</select>
</label>
</div>
<fieldset>
<legend>Fachliche Säulen</legend>
<div class="luf-editor-checks">
@foreach ($options['pillars'] as $pillar)
<label><input type="checkbox" value="{{ $pillar->id }}" wire:model="pillarIds" @disabled(! $editable)> {{ $pillar->name }}</label>
@endforeach
</div>
</fieldset>
@foreach ($options['dimensions'] as $dimension)
<fieldset>
<legend>{{ $dimension->label }}</legend>
<div class="luf-editor-checks">
@foreach ($dimension->values as $value)
<label><input type="checkbox" value="{{ $value->id }}" wire:model="dimensionIds" @disabled(! $editable)> {{ $value->label }}</label>
@endforeach
</div>
</fieldset>
@endforeach
@if ($editable)
<p>
<button class="luf-editor-save" type="submit">Speichern</button>
@if ($this->websiteIsPublic())
<button class="luf-editor-quiet" type="button" wire:click="withdrawWebsite">Website-Freigabe zurücknehmen</button>
@else
<button class="luf-editor-quiet" type="button" wire:click="releaseForWebsite">Für die Website freigeben</button>
@endif
</p>
<p class="luf-editor-lead">{{ $this->websiteFeedback !== '' ? $this->websiteFeedback : ($this->websiteIsPublic() ? 'Für die Website freigegeben. Öffentliche Seiten lesen nur diese Ableitung.' : 'Noch nicht für die Website freigegeben. Der interne Vermerk bleibt intern.') }}</p>
@endif
@php($webPages = $this->websitePages())
<p class="luf-editor-lead">
@if ($webPages === [])
Auf keiner Website-Seite als Bild verwendet.
@else
Als Bild auf der Website verwendet:
@foreach ($webPages as $usage)
{{ $usage['path'] }} ({{ $usage['published'] ? 'veröffentlicht' : '' }}{{ $usage['published'] && $usage['draft'] ? ', ' : '' }}{{ $usage['draft'] ? 'Entwurf' : '' }}){{ $loop->last ? '' : ',' }}
@endforeach
@if ($this->websiteIsPublic())
– Zurücknehmen entfernt das Bild dort von der öffentlichen Seite.
@endif
@endif
</p>
@include('filament.editorial.variants')
@php($history = $this->editorialHistory())
@if ($history !== [])
<details>
<summary>Letzte Änderungen</summary>
<ul>
@foreach ($history as $change)
<li>{{ $change['when'] }} · {{ $change['field'] }}</li>
@endforeach
</ul>
</details>
@endif
</form>
@include('filament.media.preview-frame')
</div>
@endif
@if ($fokus === 'praesentation')
@include('filament.editorial.presentation')
@include('filament.editorial.presentation-picker')
@endif
@if ($fokus === 'verwendung')
@php($card = $this->usageCard())
<p>Eine Verwendung verweist auf eine konkrete Fassung. Die Rolle steht an der Verwendung, nicht als Kopie des Mediums.</p>
@include('filament.media.usages', ['card' => $card])
@endif
@if ($fokus === 'vorschau')
<p>Die Vorschau nutzt die Website-Karte und die Karte der Bibliothek. Ein Bibliotheksbild ist in der Vorschau sichtbar und damit nicht öffentlich freigegeben. Die ausführliche Beschreibung erscheint auf diesen Karten nicht.</p>
@include('filament.media.preview-frame')
@endif
</div>