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,26 +1,60 @@
|
||||
<details>
|
||||
<summary>Medium aus dem Bestand zuordnen</summary>
|
||||
<p>Dieselbe Bestandssuche wie im Modul und im Programm. Es wird nur verwiesen, nichts kopiert.</p>
|
||||
<label>Suche
|
||||
<input type="search" wire:model.live.debounce.300ms="presentationQuery" placeholder="Titel oder Beschreibung">
|
||||
</label>
|
||||
@php($choices = $this->presentationChoices())
|
||||
@if ($choices['items'] === [])
|
||||
<p>Nichts gefunden.</p>
|
||||
@else
|
||||
<ul>
|
||||
@foreach ($choices['items'] as $hit)
|
||||
<li wire:key="wahl-{{ $hit['target'] }}">
|
||||
<label>
|
||||
<input type="radio" value="{{ $hit['target'] }}" wire:model="presentationPick">
|
||||
{{ $hit['title'] }} · {{ $hit['kind'] }}@if (($hit['version_label'] ?? '') === 'Ohne Inhaltsfassung') · ohne Inhaltsfassung @endif
|
||||
</label>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@if ($choices['more'])
|
||||
<p>Es gibt weitere Treffer. Grenze die Suche ein.</p>
|
||||
<div class="luf-picker" aria-label="Medien aus dem Bestand">
|
||||
<div>
|
||||
<p>Dieselbe Bestandssuche wie im Modul und im Programm. Es wird nur verwiesen, nichts kopiert. Die Markierung bleibt bei der Suche erhalten. Abbrechen ändert keine vorhandene Zuordnung.</p>
|
||||
<label>Suche
|
||||
<input type="search" wire:model.live.debounce.300ms="presentationQuery" placeholder="Titel oder Beschreibung">
|
||||
</label>
|
||||
@php($choices = $this->presentationChoices())
|
||||
@if ($choices['items'] === [])
|
||||
<p>Nichts gefunden.</p>
|
||||
@else
|
||||
<ul class="luf-cards luf-cards-list">
|
||||
@foreach ($choices['items'] as $hit)
|
||||
<li wire:key="wahl-{{ $hit['target'] }}">
|
||||
<article class="luf-card luf-tone-{{ $hit['tone'] ?? 'text' }}">
|
||||
<button type="button" class="luf-card" wire:click="$set('presentationInspect', '{{ $hit['target'] }}')">
|
||||
<span class="luf-figure">
|
||||
@if (! empty($hit['image']))
|
||||
<img src="{{ $hit['image'] }}" alt="">
|
||||
@else
|
||||
<span class="luf-sr">Keine Vorschau</span>
|
||||
@endif
|
||||
</span>
|
||||
<span class="luf-card-body">
|
||||
<span class="luf-kind">{{ $hit['kind'] }}</span>
|
||||
<strong>{{ $hit['title'] }}</strong>
|
||||
<span class="luf-meta">{{ $hit['version_label'] ?? '' }}</span>
|
||||
</span>
|
||||
</button>
|
||||
<label class="vw-markierung">
|
||||
<input type="radio" value="{{ $hit['target'] }}" wire:model="presentationPick">
|
||||
Zur Übernahme
|
||||
</label>
|
||||
</article>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@if ($choices['more'])
|
||||
<p>Es gibt weitere Treffer. Grenze die Suche ein.</p>
|
||||
@endif
|
||||
@endif
|
||||
<button type="button" wire:click="assignPickedPresentation">Zuordnen</button>
|
||||
@endif
|
||||
</details>
|
||||
</div>
|
||||
<aside class="luf-detail" aria-label="Betrachtetes Medium">
|
||||
@php($detail = $this->presentationInspect !== '' ? app(\App\Filament\Support\EditorialCatalog::class)->rowForTarget($this->presentationInspect, 0, allowDraft: true) : null)
|
||||
@if ($detail)
|
||||
<p class="luf-kicker">{{ $detail['kind'] ?? 'Medium' }}</p>
|
||||
<h3>{{ $detail['title'] }}</h3>
|
||||
<p class="luf-meta">{{ $detail['version_label'] ?? '' }}</p>
|
||||
@if (filled($detail['summary'] ?? null))
|
||||
<p>{{ $detail['summary'] }}</p>
|
||||
@endif
|
||||
<button type="button" class="luf-quiet" wire:click="$set('presentationPick', '{{ $detail['target'] }}')">Dieses Medium zur Übernahme markieren</button>
|
||||
@else
|
||||
<p class="luf-empty">Sieh dir ein Medium an. Die Markierung zur Übernahme ist davon getrennt.</p>
|
||||
@endif
|
||||
<div class="luf-actions">
|
||||
<button type="button" class="luf-primary" wire:click="assignPickedPresentation" @disabled($this->presentationPick === '')>Zuordnen</button>
|
||||
<button type="button" class="luf-quiet" wire:click="cancelPresentationPick">Abbrechen</button>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
Reference in new issue
Block a user