Richte die Redaktionsformulare an den Mockups aus.
Abschnitte, Medienkarten, Einordnung und Auswahl folgen der vorgegebenen Form. Datenmodell und Fassungen bleiben unverändert.
This commit is contained in:
1 parent
4c29ab2593
commit
b9fe0e3791
16 files changed
+559
-339
No files matched your search
@@ -2,10 +2,8 @@
|
||||
@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>
|
||||
<p class="luf-note">Noch ohne Angabe: {{ implode(', ', $gaps) }}.</p>
|
||||
@endif
|
||||
|
||||
@php
|
||||
@@ -17,7 +15,7 @@
|
||||
@endphp
|
||||
|
||||
@if ($groups === [])
|
||||
<p>Noch kein Präsentationsmedium. Das Vorschaubild der Bibliothek bleibt davon unabhängig.</p>
|
||||
<p class="luf-empty">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'] }}">
|
||||
@@ -27,17 +25,25 @@
|
||||
@dragover.prevent>
|
||||
@foreach ($group['rows'] as $index => $row)
|
||||
<li wire:key="praesentation-{{ $row['id'] }}"
|
||||
class="vw-karte"
|
||||
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>
|
||||
@if ($row['ordered'])
|
||||
<span class="vw-griff" aria-hidden="true">⋮⋮</span>
|
||||
@endif
|
||||
<span>
|
||||
<span class="vw-daumen">
|
||||
@if ($slug === 'galerie')
|
||||
<span class="vw-nummer">{{ $index + 1 }}</span>
|
||||
@endif
|
||||
@if (! empty($row['image']))
|
||||
<img src="{{ $row['image'] }}" alt="">
|
||||
@else
|
||||
<span class="vw-platzhalter">{{ $row['output'] !== '' ? $row['output'] : 'Medium' }}</span>
|
||||
@endif
|
||||
</span>
|
||||
<span class="vw-karte-text">
|
||||
<strong>{{ $row['title'] }}</strong>
|
||||
@if ($row['kind'])
|
||||
<span>{{ $row['kind'] }}</span>
|
||||
@@ -45,27 +51,27 @@
|
||||
@if ($row['standard'])
|
||||
<span>Standard-Titelbild</span>
|
||||
@endif
|
||||
<span>{{ $row['release_label'] }}</span>
|
||||
<span class="vw-freigabe {{ $row['released'] ? 'is-frei' : 'is-zurueck' }}">{{ $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>
|
||||
<span class="vw-karte-aktionen">
|
||||
<a class="vw-textaktion" 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>
|
||||
<button type="button" class="luf-quiet" 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>
|
||||
<button type="button" class="luf-quiet" wire:click="movePresentation({{ $row['id'] }}, -1)" @disabled($index === 0) aria-label="{{ $row['title'] }} nach vorn">Nach vorn</button>
|
||||
<button type="button" class="luf-quiet" 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>
|
||||
<button type="button" class="luf-quiet" 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>
|
||||
<button type="button" class="vw-textaktion" 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>
|
||||
<button type="button" class="vw-textaktion" wire:click="releaseAssigned({{ $row['element_id'] }})">Für die Website freigeben</button>
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
@@ -77,20 +83,24 @@
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
<p class="vw-hinweisband">Entfernen löst nur diese Zuordnung. Das Medium bleibt im Bestand.</p>
|
||||
|
||||
@if ($this->canEditEditorial())
|
||||
<label>Rolle für die nächste Zuordnung
|
||||
<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">
|
||||
Zusätzlich an der aktuellen Inhaltsfassung festhalten. Ohne Haken bleibt die Zuordnung am Medium. Eine spätere Fassung erzeugt keinen neuen Clip.
|
||||
<div class="vw-naechste">
|
||||
<label>Rolle für die nächste Zuordnung
|
||||
<select wire:model.live="presentationRole">
|
||||
@foreach ($this->presentationRoleOptions() as $slug => $label)
|
||||
<option value="{{ $slug }}">{{ $label }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
@endif
|
||||
<p>Die tatsächliche Verwendung steht getrennt davon und wird nicht als Verwendungszweck gespeichert.</p>
|
||||
@if (in_array($this->presentationRole, \App\Domain\Catalog\PresentationRole::BOUND_ROLES, true))
|
||||
<label class="vw-bindung">
|
||||
<input type="checkbox" wire:model="bindToVersion">
|
||||
Zusätzlich an der aktuellen Inhaltsfassung festhalten. Ohne Haken bleibt die Zuordnung am Medium. Eine spätere Fassung erzeugt keinen neuen Clip.
|
||||
</label>
|
||||
@endif
|
||||
<p class="luf-note">Die tatsächliche Verwendung steht getrennt davon und wird nicht als Verwendungszweck gespeichert.</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
Reference in new issue
Block a user