Zeige Katalogkarten, Titelbilder und klare Freigabestatus im Arbeitsplatz.
Deploy Test / test (push) Successful in 23s
Deploy Test / deploy (push) Successful in 22s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-16 17:54:12 +01:00
1 parent 053a361801
commit 9195cdcd15
15 files changed
+795 -59

No files matched your search

@@ -150,18 +150,48 @@
@else
<p class="luf-kicker">{{ $this->hostLabel() }}</p>
<h2>{{ trim($this->displayTitle) !== '' ? $this->displayTitle : $this->designation }}</h2>
<p class="luf-note">Name, Anzeigetitel, Kurzbeschreibung, Einordnung und Vorschaubild gelten für die Karte. Sie legen keine Inhaltsfassung an.</p>
<p class="luf-note">Titel, Texte, Einordnung und Titelbild beschreiben die Karte. Sie legen keine Inhaltsfassung an. Lernziel, Zeit und Material gehören zum fachlichen Stand darunter.</p>
<div class="luf-chips" aria-label="Status">
@foreach ($this->presentationChips() as $chip)
<span class="luf-chip luf-chip-{{ $chip['tone'] }}">{{ $chip['label'] }}</span>
@endforeach
</div>
@php($cover = $this->coverPicture())
<p class="luf-kicker">Katalogvorschau</p>
<div class="luf-frame">
@if ($cover['url'])
<img src="{{ $cover['url'] }}" alt="{{ $this->thumbnailAlt !== '' ? $this->thumbnailAlt : '' }}">
@else
<svg class="luf-mark" viewBox="0 0 160 90" aria-hidden="true">
<rect x="8" y="12" width="144" height="66" fill="none" stroke="currentColor" stroke-width="3"/>
<path d="M28 58 V32 H52 V58 M68 58 V24 H92 V58 M108 58 V38 H132 V58" fill="none" stroke="currentColor" stroke-width="3"/>
</svg>
@endif
@if ($cover['note'])
<span class="luf-frame-note">{{ $cover['note'] }}</span>
@endif
</div>
<p class="luf-catalog-body" style="padding: 0;">
<strong>{{ trim($this->displayTitle) !== '' ? $this->displayTitle : ($this->designation !== '' ? $this->designation : 'Ohne Titel') }}</strong>
<span class="luf-summary">{{ trim($this->summary) !== '' ? \Illuminate\Support\Str::limit(trim($this->summary), 160) : 'Noch keine Kurzbeschreibung' }}</span>
</p>
<div class="luf-field">
<label for="name">Name in der Verwaltung</label>
<input id="name" type="text" wire:model="designation" required>
</div>
<div class="luf-field">
<label for="anzeige">Anzeigetitel</label>
<input id="anzeige" type="text" wire:model="displayTitle" placeholder="Leer lässt den Namen stehen">
<label for="anzeige">Titel</label>
<input id="anzeige" type="text" wire:model.live.debounce.300ms="displayTitle" placeholder="Leer lässt den Namen stehen">
</div>
<div class="luf-field">
<label for="kurz">Kurzbeschreibung</label>
<textarea id="kurz" rows="3" wire:model="summary"></textarea>
<textarea id="kurz" rows="3" wire:model.live.debounce.300ms="summary"></textarea>
<span class="luf-meta">Steht auf der Katalogkarte.</span>
</div>
<div class="luf-field">
<label for="beschreibung">Fachliche Beschreibung</label>
<textarea id="beschreibung" rows="6" wire:model="description"></textarea>
<span class="luf-meta">Ausführlicher Text für die Mitgliederbibliothek und eine spätere öffentliche Produktseite. Preis und Nutzungsrechte bleiben beim Angebot.</span>
</div>
@foreach ($this->dimensionGroups() as $group)
<fieldset class="luf-checks">
@@ -174,22 +204,49 @@
@endforeach
</fieldset>
@endforeach
<p class="luf-meta">
@if ($this->thumbnailError)
{{ $this->thumbnailError }}
@elseif (filled($this->thumbnailPath))
Ein Vorschaubild ist hinterlegt.
@else
Noch kein Vorschaubild.
@endif
</p>
<h3>Titelbild</h3>
<p class="luf-note">Ein selbst gewähltes Bild hat Vorrang vor einem Vorschlag. Ein Bild aus einem Film bleibt geschützt und wird nicht auf der öffentlichen Website ausgegeben.</p>
@if ($this->thumbnailError)
<p class="luf-feedback" role="status">{{ $this->thumbnailError }}</p>
@endif
@php($films = $this->filmChoices())
@php($suggestion = $this->suggestedFilm())
@if ($suggestion)
<p class="luf-note">Vorschlag aus dem Film {{ $suggestion['title'] }}.</p>
<button type="button" class="luf-quiet" wire:click="adoptPicture({{ $suggestion['id'] }})">Vorschlag als Titelbild übernehmen</button>
@endif
@if ($films !== [])
<p class="luf-note">Mehrere Filme sind enthalten. Wähle das Titelbild.</p>
@foreach ($films as $film)
<div class="luf-choice">
<img src="{{ $film['image'] }}" alt="">
<strong>{{ $film['title'] }}</strong>
<button type="button" class="luf-quiet" wire:click="adoptPicture({{ $film['id'] }})">{{ $film['title'] }} als Titelbild</button>
</div>
@endforeach
@endif
<div class="luf-field">
<label for="vorschau-bild">Vorschaubild</label>
<label for="bild-alternativ">Alternativtext</label>
<input id="bild-alternativ" type="text" wire:model="thumbnailAlt" placeholder="Was das Bild zeigt">
</div>
<div class="luf-field">
<label for="vorschau-bild">Eigenes Titelbild</label>
<input id="vorschau-bild" type="file" accept="image/png,image/jpeg,image/webp" wire:model="previewUpload">
</div>
<div class="luf-field">
<label for="bild-suche">Bild aus vorhandenem Medium</label>
<input id="bild-suche" type="search" wire:model.live.debounce.300ms="imageQuery" placeholder="Titel des Mediums">
</div>
@foreach ($this->mediaChoices() as $medium)
<div class="luf-choice">
<img src="{{ $medium['image'] }}" alt="">
<span><span class="luf-kind">{{ $medium['kind'] }}</span><strong>{{ $medium['title'] }}</strong></span>
<button type="button" class="luf-quiet" wire:click="adoptPicture({{ $medium['id'] }})">Dieses Bild übernehmen</button>
</div>
@endforeach
<div class="luf-actions">
<button type="button" class="luf-primary" wire:click="saveDisplay">Anzeige speichern</button>
<button type="button" class="luf-quiet" wire:click="savePreview">Vorschaubild speichern</button>
<button type="button" class="luf-quiet" wire:click="savePreview">Titelbild speichern</button>
</div>
<h3>Zum fachlichen Stand</h3>
@@ -224,10 +281,10 @@
<details class="luf-rules">
<summary>Was Speichern und Freigeben bedeuten</summary>
<p>Anzeigetitel, Kurzbeschreibung, Einordnung und Vorschaubild ändern die sichtbare Karte. Sie erzeugen keine Inhaltsfassung.</p>
<p>Titel, Kurzbeschreibung, fachliche Beschreibung, Einordnung und Titelbild ändern die sichtbare Karte. Sie erzeugen keine Inhaltsfassung.</p>
<p>Entwurf speichern hält Aufbau, Rollen, Lernziel, Zeit und Material fest. Das kann beliebig oft geschehen. Eine freigegebene Fassung bleibt dabei unverändert.</p>
<p>Freigeben erzeugt eine neue unveränderliche Fassung. Die bisherige bleibt für ältere Verweise erhalten.</p>
<p>Zur Anzeige freigeben, oben in der Leiste, entscheidet zusätzlich, welche freigegebene Fassung Trainer sehen. Das ist ein eigener Schritt.</p>
<p>In Mitgliederbibliothek anzeigen entscheidet, welche freigegebene Fassung Trainer sehen. Das veröffentlicht weder die Website noch ein Angebot.</p>
<p>Ein Medium oder Modul, das auch woanders steckt, bleibt dort bei seiner bisherigen Fassung. Hier wird nur darauf verwiesen.</p>
</details>
</section>