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>
27 lines
1.0 KiB
PHP
27 lines
1.0 KiB
PHP
<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'] }}
|
|
</label>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
@if ($choices['more'])
|
|
<p>Es gibt weitere Treffer. Grenze die Suche ein.</p>
|
|
@endif
|
|
<button type="button" wire:click="assignPickedPresentation">Zuordnen</button>
|
|
@endif
|
|
</details>
|