Zeige Katalogkarten, Titelbilder und klare Freigabestatus im Arbeitsplatz.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
053a361801
commit
9195cdcd15
15 files changed
+795
-59
No files matched your search
@@ -0,0 +1,29 @@
|
||||
@php
|
||||
$summary = \Illuminate\Support\Str::limit(trim((string) ($card['summary'] ?? '')), 160);
|
||||
@endphp
|
||||
<a class="luf-catalog luf-tone-{{ $card['tone'] }}" href="{{ $card['url'] }}">
|
||||
<span class="luf-figure">
|
||||
@if (! empty($card['image']))
|
||||
<img src="{{ $card['image'] }}" alt="">
|
||||
@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>
|
||||
<span class="luf-sr">Kein Titelbild</span>
|
||||
@endif
|
||||
@if (! empty($card['image_note']))
|
||||
<span class="luf-figure-note">{{ $card['image_note'] }}</span>
|
||||
@endif
|
||||
</span>
|
||||
<span class="luf-catalog-body">
|
||||
<span class="luf-kind">{{ $card['kind'] }}</span>
|
||||
<strong>{{ $card['title'] }}</strong>
|
||||
<span class="luf-summary">{{ $summary !== '' ? $summary : 'Noch keine Kurzbeschreibung' }}</span>
|
||||
<span class="luf-chips">
|
||||
@foreach ($card['chips'] as $chip)
|
||||
<span class="luf-chip luf-chip-{{ $chip['tone'] }}">{{ $chip['label'] }}</span>
|
||||
@endforeach
|
||||
</span>
|
||||
</span>
|
||||
</a>
|
||||
@@ -19,32 +19,48 @@
|
||||
<div class="luf-toolbar">
|
||||
<div class="luf-field">
|
||||
<label for="redaktion-suche">Suche</label>
|
||||
<input id="redaktion-suche" type="search" wire:model.live.debounce.300ms="query" placeholder="Name oder Kurzbeschreibung">
|
||||
<input id="redaktion-suche" type="search" wire:model.live.debounce.300ms="query" placeholder="Titel oder Kurzbeschreibung">
|
||||
</div>
|
||||
<div class="luf-scopes" role="group" aria-label="Art">
|
||||
<button type="button" class="luf-quiet" wire:click="$set('kindFilter', 'alle')" aria-pressed="{{ $this->kindFilter === 'alle' ? 'true' : 'false' }}">Alle</button>
|
||||
<button type="button" class="luf-quiet" wire:click="$set('kindFilter', 'programm')" aria-pressed="{{ $this->kindFilter === 'programm' ? 'true' : 'false' }}">Programme</button>
|
||||
<button type="button" class="luf-quiet" wire:click="$set('kindFilter', 'modul')" aria-pressed="{{ $this->kindFilter === 'modul' ? 'true' : 'false' }}">Module</button>
|
||||
</div>
|
||||
<div class="luf-scopes" role="group" aria-label="Sichtbarkeit">
|
||||
<button type="button" class="luf-quiet" wire:click="$set('visibility', 'alle')" aria-pressed="{{ $this->visibility === 'alle' ? 'true' : 'false' }}">Jeder Stand</button>
|
||||
<button type="button" class="luf-quiet" wire:click="$set('visibility', 'bibliothek')" aria-pressed="{{ $this->visibility === 'bibliothek' ? 'true' : 'false' }}">In der Bibliothek</button>
|
||||
<button type="button" class="luf-quiet" wire:click="$set('visibility', 'verborgen')" aria-pressed="{{ $this->visibility === 'verborgen' ? 'true' : 'false' }}">Nicht in der Bibliothek</button>
|
||||
<button type="button" class="luf-quiet" wire:click="$set('visibility', 'entwurf')" aria-pressed="{{ $this->visibility === 'entwurf' ? 'true' : 'false' }}">Nur Entwürfe</button>
|
||||
</div>
|
||||
@if ($this->dimensionFilters() !== [])
|
||||
<div class="luf-field">
|
||||
<label for="redaktion-saeule">Fachliche Einordnung</label>
|
||||
<select id="redaktion-saeule" wire:model.live="pillar">
|
||||
<option value="">Alle Einordnungen</option>
|
||||
@foreach ($this->dimensionFilters() as $group)
|
||||
<optgroup label="{{ $group['label'] }}">
|
||||
@foreach ($group['values'] as $value)
|
||||
<option value="{{ $value['id'] }}">{{ $value['label'] }}</option>
|
||||
@endforeach
|
||||
</optgroup>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@if ($this->entries() === [])
|
||||
<p class="luf-empty">{{ trim($this->query) === '' ? 'Noch keine Programme oder Module.' : 'Nichts gefunden. Prüfe die Schreibweise oder lege oben einen neuen Eintrag an.' }}</p>
|
||||
<div class="luf-empty">
|
||||
@if ($this->hasActiveFilters())
|
||||
<p>Nichts gefunden. Prüfe die Schreibweise oder setze die Filter zurück.</p>
|
||||
<button type="button" class="luf-quiet" wire:click="resetFilters">Filter zurücksetzen</button>
|
||||
@else
|
||||
<p>Noch keine Programme oder Module. Der Name oben genügt, um das erste anzulegen.</p>
|
||||
@endif
|
||||
</div>
|
||||
@else
|
||||
<ul class="luf-cards">
|
||||
<ul class="luf-catalogs">
|
||||
@foreach ($this->entries() as $entry)
|
||||
<li>
|
||||
<a class="luf-card luf-tone-{{ $entry['tone'] }}" href="{{ $entry['url'] }}">
|
||||
<span class="luf-thumb luf-fallback" aria-hidden="true">{{ mb_substr($entry['kind'], 0, 1) }}</span>
|
||||
<span>
|
||||
<span class="luf-kind">{{ $entry['kind'] }}</span>
|
||||
<strong>{{ $entry['title'] }}</strong>
|
||||
<span class="luf-meta">{{ $entry['stand'] }}</span>
|
||||
@if ($entry['summary'] !== '')
|
||||
<span class="luf-meta">{{ $entry['summary'] }}</span>
|
||||
@endif
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>@include('filament.editorial.catalog-card', ['card' => $entry])</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -35,6 +35,10 @@
|
||||
@if (filled($summary))
|
||||
<p>{{ $summary }}</p>
|
||||
@endif
|
||||
@if (filled($description ?? null))
|
||||
<h2>Beschreibung</h2>
|
||||
<p>{{ $description }}</p>
|
||||
@endif
|
||||
@if (filled($learningGoal))
|
||||
<h2>Lernziel</h2>
|
||||
<p>{{ $learningGoal }}</p>
|
||||
|
||||
@@ -160,6 +160,62 @@
|
||||
.luf-block-main strong, .luf-card strong { display: block; font-size: 1.05rem; }
|
||||
.luf-thumb { width: 3.25rem; height: 3.25rem; object-fit: cover; flex: 0 0 auto; background: #e7eee9; }
|
||||
.luf-fallback { display: inline-flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 1.35rem; color: var(--luf-pine); }
|
||||
.luf-catalogs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 0.85rem; }
|
||||
.luf-catalog {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
border: 1px solid var(--luf-line);
|
||||
border-top: 4px solid var(--luf-pine);
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
min-width: 0;
|
||||
}
|
||||
.luf-catalog:hover { border-color: var(--luf-pine); }
|
||||
.luf-catalog.luf-tone-programm { border-top-color: var(--luf-pine); }
|
||||
.luf-catalog.luf-tone-modul { border-top-color: #1b2838; }
|
||||
.luf-figure { position: relative; display: block; aspect-ratio: 16 / 9; background: #e7eee9; overflow: hidden; }
|
||||
.luf-figure img, .luf-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
.luf-mark { width: 100%; height: 100%; color: var(--luf-pine); background: #e7eee9; }
|
||||
.luf-figure-note, .luf-frame-note {
|
||||
position: absolute;
|
||||
left: 0.4rem;
|
||||
bottom: 0.4rem;
|
||||
max-width: calc(100% - 0.8rem);
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
padding: 0.15rem 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
.luf-catalog-body { display: grid; gap: 0.35rem; padding: 0.75rem 0.8rem 0.9rem; }
|
||||
.luf-catalog-body strong {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
min-height: 2.6em;
|
||||
font-size: 1.08rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
.luf-summary {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
min-height: 2.6em;
|
||||
color: var(--luf-quiet);
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
.luf-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
|
||||
.luf-chip { border: 1px solid var(--luf-line); padding: 0.05rem 0.4rem; font-size: 0.78rem; line-height: 1.5; background: #fff; }
|
||||
.luf-chip-pine { color: var(--luf-pine); border-color: var(--luf-pine); }
|
||||
.luf-chip-yellow { border-color: var(--luf-yellow); background: #fff8e8; }
|
||||
.luf-chip-quiet { color: var(--luf-quiet); }
|
||||
.luf-chip-ink { color: var(--luf-ink); }
|
||||
.luf-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
||||
.luf-frame { position: relative; aspect-ratio: 16 / 9; max-width: 22rem; background: #e7eee9; margin: 0 0 0.8rem; }
|
||||
.luf-choice { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 0.6rem; align-items: center; background: #fff; border: 1px solid var(--luf-line); padding: 0.35rem; margin: 0 0 0.45rem; }
|
||||
.luf-choice img { width: 5.5rem; height: 3.1rem; object-fit: cover; }
|
||||
.luf-picker { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.8fr); gap: 0.8rem; align-items: start; }
|
||||
.luf-detail { background: var(--luf-paper); border: 1px solid var(--luf-line); padding: 0.8rem; }
|
||||
.luf-modal { position: fixed; inset: 0; z-index: 50; background: rgba(27, 40, 56, 0.46); display: grid; place-items: center; padding: 1rem; }
|
||||
@@ -171,6 +227,7 @@
|
||||
.luf-split, .luf-desk-create, .luf-picker { grid-template-columns: 1fr; }
|
||||
.luf-move { grid-auto-flow: column; }
|
||||
.luf-part-row, .luf-block { grid-template-columns: 1fr; }
|
||||
.luf-cards { grid-template-columns: 1fr; }
|
||||
.luf-cards, .luf-catalogs { grid-template-columns: 1fr; }
|
||||
.luf-choice { grid-template-columns: 5.5rem 1fr; }
|
||||
}
|
||||
</style>
|
||||
@@ -12,6 +12,9 @@
|
||||
@if (filled($summary ?? null))
|
||||
<p class="lede">{{ $summary }}</p>
|
||||
@endif
|
||||
@if (filled($composition->description))
|
||||
<p>{{ $composition->description }}</p>
|
||||
@endif
|
||||
</header>
|
||||
<dl class="facts">
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user