Führe den gemeinsamen Redaktionsarbeitsplatz ein.
Texte, Medienzuordnung und Einordnung teilen sich einen Arbeitsplatz. Fassungen, Rechte und das Datenmodell bleiben unverändert.
This commit is contained in:
1 parent
a359a5fb69
commit
4c29ab2593
140 files changed
+6705
-201
No files matched your search
@@ -1,53 +1,84 @@
|
||||
<div class="luf-redaktion">
|
||||
@if ($this->deskFeedback !== '')
|
||||
<p class="luf-feedback" role="status">{{ $this->deskFeedback }}</p>
|
||||
@endif
|
||||
<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>
|
||||
<p class="luf-note">Entfernen löst nur diese Zuordnung. Das Medium bleibt im Bestand.</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
|
||||
@php
|
||||
$groups = [];
|
||||
foreach ($this->presentationRows() as $row) {
|
||||
$groups[$row['role']]['label'] = $row['role_label'];
|
||||
$groups[$row['role']]['rows'][] = $row;
|
||||
}
|
||||
@endphp
|
||||
|
||||
@if ($groups === [])
|
||||
<p>Noch kein Präsentationsmedium. Das Vorschaubild der Bibliothek bleibt davon unabhängig.</p>
|
||||
@else
|
||||
@foreach ($groups as $slug => $group)
|
||||
<section class="vw-rolle" aria-label="{{ $group['label'] }}">
|
||||
<h3>{{ $group['label'] }} · {{ count($group['rows']) }} {{ count($group['rows']) === 1 ? 'Medium' : 'Medien' }}</h3>
|
||||
<ul class="vw-zuordnungen {{ $slug === 'galerie' ? 'is-galerie' : '' }}"
|
||||
x-data="{ from: null }"
|
||||
@dragover.prevent>
|
||||
@foreach ($group['rows'] as $index => $row)
|
||||
<li wire:key="praesentation-{{ $row['id'] }}"
|
||||
draggable="{{ $row['ordered'] ? 'true' : 'false' }}"
|
||||
@dragstart="from = {{ (int) $row['id'] }}"
|
||||
@dragend="from = null"
|
||||
@drop.prevent="if (from) { $wire.placePresentation(from, {{ (int) $row['id'] }}); from = null }">
|
||||
<span class="vw-griff" aria-hidden="true">↕</span>
|
||||
@if (! empty($row['image']))
|
||||
<img src="{{ $row['image'] }}" alt="">
|
||||
@else
|
||||
<span class="vw-platzhalter">{{ $row['output'] !== '' ? $row['output'] : 'Medium' }}</span>
|
||||
@endif
|
||||
<span>
|
||||
<strong>{{ $row['title'] }}</strong>
|
||||
@if ($row['kind'])
|
||||
<span>{{ $row['kind'] }}</span>
|
||||
@endif
|
||||
@if ($row['standard'])
|
||||
<span>Standard-Titelbild</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>
|
||||
<span class="luf-actions">
|
||||
<a class="luf-link" href="{{ \App\Filament\Resources\ContentElements\ContentElementResource::getUrl('view', ['record' => $row['element_id']]) }}">Quelle öffnen</a>
|
||||
@if ($this->canEditEditorial())
|
||||
<button type="button" wire:click="beginExchange({{ $row['id'] }})">Austauschen</button>
|
||||
@if ($row['ordered'])
|
||||
<button type="button" wire:click="movePresentation({{ $row['id'] }}, -1)" @disabled($index === 0) aria-label="{{ $row['title'] }} nach vorn">Nach vorn</button>
|
||||
<button type="button" wire:click="movePresentation({{ $row['id'] }}, 1)" @disabled($index === count($group['rows']) - 1) aria-label="{{ $row['title'] }} nach hinten">Nach hinten</button>
|
||||
@endif
|
||||
<button type="button" wire:click="detachPresentation({{ $row['id'] }})">Zuordnung entfernen</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>
|
||||
</section>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if ($this->canEditEditorial())
|
||||
<label>Rolle
|
||||
<label>Rolle für die nächste Zuordnung
|
||||
<select wire:model.live="presentationRole">
|
||||
@foreach ($this->presentationRoleOptions() as $slug => $label)
|
||||
<option value="{{ $slug }}">{{ $label }}</option>
|
||||
|
||||
Reference in new issue
Block a user