Files
laraundfelix/resources/views/filament/editorial/presentation.blade.php
T
LarsandCursor f29ea58fd5
CI Feature / test (push) Successful in 54s
Deploy Test / test (push) Successful in 47s
Deploy Test / deploy (push) Successful in 24s
Ergänze die gemeinsame redaktionelle Basis an den Fachobjekten.
Texte, Materialart und Präsentationsmedien bleiben am Medium, Modul, Programm und Lizenzartikel und werden von Verwaltung und Karten aus derselben Quelle gelesen, ohne Fassung oder Lizenz zu verändern.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-19 07:54:36 +01:00

66 lines
3.4 KiB
PHP

<div class="luf-redaktion">
<p>Zugeordnet wird ein Medium aus dem Bestand. Die Rolle gilt nur für diese Zuordnung. Sie gibt das Medium nicht frei und nimmt es nicht in den Lehrinhalt auf.</p>
@if ($gaps = $this->editorialGaps())
<p>Noch ohne Angabe: {{ implode(', ', $gaps) }}.</p>
@endif
@if ($this->deskFeedback !== '')
<p role="status">{{ $this->deskFeedback }}</p>
@endif
@if ($rows = $this->presentationRows())
<ul>
@foreach ($rows as $row)
<li wire:key="praesentation-{{ $row['id'] }}">
<strong>{{ $row['title'] }}</strong>
<span>{{ $row['role_label'] }}@if ($row['standard']) · Standard-Titelbild @endif</span>
@if ($row['kind'])
<span>{{ $row['kind'] }}</span>
@endif
<span>{{ $row['release_label'] }}</span>
@if ($row['binding'])
<span>{{ $row['binding']['label'] }}</span>
@else
<span>Eigenständiges Medium, ohne Bindung an eine Fassung.</span>
@endif
<span>
<a href="{{ \App\Filament\Resources\ContentElements\ContentElementResource::getUrl('view', ['record' => $row['element_id']]) }}">Im Medienmanager öffnen</a>
@if ($this->canEditEditorial())
@if ($row['ordered'])
<button type="button" wire:click="movePresentation({{ $row['id'] }}, -1)">Nach vorn</button>
<button type="button" wire:click="movePresentation({{ $row['id'] }}, 1)">Nach hinten</button>
@endif
<button type="button" wire:click="detachPresentation({{ $row['id'] }})">Zuordnung lösen</button>
@if ($this->canReleasePresentation())
@if ($row['released'])
<button type="button" wire:click="withdrawAssigned({{ $row['element_id'] }})">Website-Freigabe zurücknehmen</button>
@else
<button type="button" wire:click="releaseAssigned({{ $row['element_id'] }})">Für die Website freigeben</button>
@endif
@endif
@endif
</span>
</li>
@endforeach
</ul>
@else
<p>Noch kein Präsentationsmedium. Das Vorschaubild der Bibliothek bleibt davon unabhängig.</p>
@endif
@if ($this->canEditEditorial())
<label>Rolle
<select wire:model.live="presentationRole">
@foreach ($this->presentationRoleOptions() as $slug => $label)
<option value="{{ $slug }}">{{ $label }}</option>
@endforeach
</select>
</label>
@if (in_array($this->presentationRole, \App\Domain\Catalog\PresentationRole::BOUND_ROLES, true))
<label>
<input type="checkbox" wire:model="bindToVersion">
Herkunft an der aktuellen Fassung festhalten. Eine spätere Fassung erzeugt keinen neuen Clip.
</label>
@endif
<p>Die tatsächliche Verwendung steht getrennt davon und wird nicht als Verwendungszweck gespeichert.</p>
@endif
</div>