Fasse die Bearbeitung in Dialoge und übernimm eine Filmstelle als Titelbild.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
9195cdcd15
commit
c47c3b9b32
9 files changed
+1052
-228
No files matched your search
@@ -20,7 +20,7 @@
|
||||
</button>
|
||||
</p>
|
||||
@endif
|
||||
@if ($this->feedback !== '')
|
||||
@if ($this->feedback !== '' && ! $this->moduleOpen && ! $this->partOpen)
|
||||
<p class="luf-feedback" role="status">{{ $this->feedback }}</p>
|
||||
@endif
|
||||
@if ($this->releaseArmed)
|
||||
@@ -40,7 +40,7 @@
|
||||
<h2>Aufbau</h2>
|
||||
<button type="button" class="luf-primary" wire:click="openPicker">Bestandteil hinzufügen</button>
|
||||
</div>
|
||||
<p class="luf-note">Die Bausteine bleiben sichtbar, auch wenn rechts ein Bestandteil bearbeitet wird. Ziehen sortiert sie. Nach oben und Nach unten tun dasselbe ohne Ziehen.</p>
|
||||
<p class="luf-note">Der Aufbau ist die Arbeitsfläche. Das Stiftsymbol öffnet die Eigenschaften eines Bestandteils. Ziehen ändert die Reihenfolge, Nach oben und Nach unten tun dasselbe ohne Ziehen.</p>
|
||||
@if ($this->members === [])
|
||||
<p class="luf-empty">
|
||||
@if ($this->isProgram())
|
||||
@@ -63,21 +63,33 @@
|
||||
@dragenter.prevent="over = {{ $index }}"
|
||||
:class="{ 'is-drop': over === {{ $index }} && from !== {{ $index }} }">
|
||||
<button type="button" class="luf-block-main" wire:click="selectPart({{ $index }})" @if ($this->selected === $index) aria-current="true" @endif>
|
||||
@if (! empty($member['image']))
|
||||
<img class="luf-thumb" src="{{ $member['image'] }}" alt="">
|
||||
@else
|
||||
<span class="luf-thumb luf-fallback" aria-hidden="true">{{ mb_substr((string) $member['kind'], 0, 1) }}</span>
|
||||
@endif
|
||||
<span class="luf-block-figure">
|
||||
@if (! empty($member['image']))
|
||||
<img src="{{ $member['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
|
||||
</span>
|
||||
<span>
|
||||
<span class="luf-kind">{{ $member['role'] }}</span>
|
||||
<span class="luf-kind">{{ $member['kind'] }}</span>
|
||||
<strong>{{ $member['title'] }}</strong>
|
||||
<span class="luf-meta">{{ $member['kind'] }} · {{ $member['version_label'] }}</span>
|
||||
<span class="luf-meta">{{ $member['role'] }} · {{ $member['version_label'] }}</span>
|
||||
@if ($children = $this->childrenOf((string) $member['target']))
|
||||
<span class="luf-meta">Enthält {{ $children }}</span>
|
||||
@endif
|
||||
</span>
|
||||
</button>
|
||||
<div class="luf-move">
|
||||
<button type="button" class="luf-icon" wire:click="openPart({{ $index }})" aria-label="Bearbeiten: {{ $member['title'] }}">
|
||||
<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true">
|
||||
<path d="M4 20h4l10.2-10.2-4-4L4 16v4z" fill="none" stroke="currentColor" stroke-width="1.8"/>
|
||||
<path d="M12.8 7.2l4 4" fill="none" stroke="currentColor" stroke-width="1.8"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button type="button" class="luf-quiet" wire:click="movePart({{ $index }}, -1)" @disabled($index === 0) aria-label="{{ $member['title'] }} nach oben">Nach oben</button>
|
||||
<button type="button" class="luf-quiet" wire:click="movePart({{ $index }}, 1)" @disabled($index === count($this->members) - 1) aria-label="{{ $member['title'] }} nach unten">Nach unten</button>
|
||||
</div>
|
||||
@@ -87,187 +99,75 @@
|
||||
@endif
|
||||
</section>
|
||||
|
||||
<section class="luf-pane" aria-label="Bearbeitung">
|
||||
<div class="luf-tabs" role="tablist" aria-label="Was gerade bearbeitet wird">
|
||||
<button type="button" role="tab" class="luf-quiet" wire:click="$set('panel', 'angaben')" aria-selected="{{ $this->panel === 'angaben' ? 'true' : 'false' }}">Eigenschaften des {{ $this->hostLabel() }}s</button>
|
||||
<button type="button" role="tab" class="luf-quiet" wire:click="$set('panel', 'bestandteil')" aria-selected="{{ $this->panel === 'bestandteil' ? 'true' : 'false' }}" @disabled($this->selected === null)>Ausgewählter Bestandteil</button>
|
||||
<button type="button" role="tab" class="luf-quiet" wire:click="$set('panel', 'fassungen')" aria-selected="{{ $this->panel === 'fassungen' ? 'true' : 'false' }}">Freigegebene Fassungen</button>
|
||||
<section class="luf-pane" aria-label="Überblick">
|
||||
<p class="luf-kicker">{{ $this->hostLabel() }}</p>
|
||||
<h2>{{ trim($this->displayTitle) !== '' ? $this->displayTitle : $this->designation }}</h2>
|
||||
<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>
|
||||
|
||||
@if ($this->panel === 'bestandteil' && $this->selectedMember())
|
||||
@php($member = $this->selectedMember())
|
||||
<p class="luf-kicker">Bestandteil an dieser Stelle</p>
|
||||
<h2>{{ $member['title'] }}</h2>
|
||||
<p class="luf-meta">{{ $member['kind'] }} · {{ $member['version_label'] }}</p>
|
||||
<div class="luf-field">
|
||||
<label for="rolle">Rolle an dieser Stelle</label>
|
||||
<input id="rolle" type="text" wire:model="roleDraft">
|
||||
</div>
|
||||
<p class="luf-note">Die Rolle gilt nur hier. Dasselbe Medium kann woanders eine andere Rolle haben.</p>
|
||||
@if (count($this->selectedAlternatives()) > 1)
|
||||
<h3>Vorhandene Fassung</h3>
|
||||
<div class="luf-scopes">
|
||||
@foreach ($this->selectedAlternatives() as $alternative)
|
||||
<button type="button" class="luf-quiet" wire:click="useVersion({{ $this->selected }}, '{{ $alternative['target'] }}')" aria-pressed="{{ $member['target'] === $alternative['target'] ? 'true' : 'false' }}">{{ $alternative['label'] }}</button>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<div class="luf-actions">
|
||||
@if ($member['open_url'])
|
||||
<a class="luf-link" href="{{ $member['open_url'] }}" target="_blank" rel="noopener">Medium ansehen</a>
|
||||
@endif
|
||||
@if ($member['edit_url'])
|
||||
<a class="luf-link" href="{{ $member['edit_url'] }}?zurueck={{ urlencode($this->selfUrl()) }}">Bestandteil bearbeiten</a>
|
||||
@endif
|
||||
<button type="button" class="luf-quiet" wire:click="removePart({{ $this->selected }})">Aus dem Aufbau nehmen</button>
|
||||
</div>
|
||||
@elseif ($this->panel === 'fassungen')
|
||||
<p class="luf-kicker">Nur freigegebene Stände</p>
|
||||
<h2>Freigegebene Fassungen</h2>
|
||||
@if ($this->versionChoices() === [])
|
||||
<p class="luf-empty">Noch keine freigegebene Fassung. Sie entsteht mit „Freigeben“, nicht beim Speichern des Entwurfs.</p>
|
||||
@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
|
||||
<ul class="luf-list">
|
||||
@foreach ($this->versionChoices() as $version)
|
||||
<li class="luf-row">
|
||||
<div>
|
||||
<strong>{{ $version['text'] }}</strong>
|
||||
@if ($version['current'])
|
||||
<span class="luf-meta">Letzter freigegebener Stand</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="luf-move">
|
||||
<button type="button" class="luf-quiet" wire:click="loadTemplate({{ $version['id'] }})">Als Vorlage laden</button>
|
||||
@if ($url = $this->previewUrlFor($version['id']))
|
||||
<a class="luf-link" href="{{ $url }}" target="_blank" rel="noopener">Vorschau</a>
|
||||
@endif
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<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
|
||||
<p class="luf-note">Eine freigegebene Fassung wird nicht überschrieben. Als Vorlage laden ändert nur den Arbeitsstand.</p>
|
||||
@else
|
||||
<p class="luf-kicker">{{ $this->hostLabel() }}</p>
|
||||
<h2>{{ trim($this->displayTitle) !== '' ? $this->displayTitle : $this->designation }}</h2>
|
||||
<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>
|
||||
@if ($cover['note'])
|
||||
<span class="luf-frame-note">{{ $cover['note'] }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<p class="luf-summary">{{ trim($this->summary) !== '' ? \Illuminate\Support\Str::limit(trim($this->summary), 180) : 'Noch keine Kurzbeschreibung' }}</p>
|
||||
@if (trim($this->learningGoal) !== '')
|
||||
<p class="luf-meta">Lernziel: {{ \Illuminate\Support\Str::limit(trim($this->learningGoal), 140) }}</p>
|
||||
@endif
|
||||
@if (trim($this->durationMinutes) !== '' || trim($this->materialNote) !== '')
|
||||
<p class="luf-meta">
|
||||
@if (trim($this->durationMinutes) !== '')
|
||||
{{ $this->durationMinutes }} Minuten
|
||||
@endif
|
||||
@if ($cover['note'])
|
||||
<span class="luf-frame-note">{{ $cover['note'] }}</span>
|
||||
@if (trim($this->materialNote) !== '')
|
||||
· {{ \Illuminate\Support\Str::limit(trim($this->materialNote), 80) }}
|
||||
@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">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.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">
|
||||
<legend>{{ $group['label'] }}</legend>
|
||||
@foreach ($group['values'] as $value)
|
||||
<label>
|
||||
<input type="checkbox" value="{{ $value['id'] }}" wire:model="dimensionIds">
|
||||
{{ $value['label'] }}
|
||||
</label>
|
||||
@endforeach
|
||||
</fieldset>
|
||||
@endforeach
|
||||
<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="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">Titelbild speichern</button>
|
||||
</div>
|
||||
@endif
|
||||
@if ($caption = $this->imageCaption())
|
||||
<p class="luf-meta">{{ $caption }}</p>
|
||||
@endif
|
||||
<div class="luf-actions">
|
||||
<button type="button" class="luf-primary" wire:click="openModule">{{ $this->hostLabel() }} bearbeiten</button>
|
||||
</div>
|
||||
@if ($member = $this->selectedMember())
|
||||
<p class="luf-note">Ausgewählt: {{ $member['title'] }}, Rolle {{ $member['role'] }}. Das Stiftsymbol öffnet die Bearbeitung.</p>
|
||||
@endif
|
||||
|
||||
<h3>Zum fachlichen Stand</h3>
|
||||
<p class="luf-note">Lernziel, Zeit und Material gehören zum Aufbau. Speichern schreibt sie in den Entwurf. Erst Freigeben erzeugt eine neue Fassung.</p>
|
||||
<div class="luf-field">
|
||||
<label for="lernziel">Lernziel</label>
|
||||
<textarea id="lernziel" rows="3" wire:model="learningGoal"></textarea>
|
||||
</div>
|
||||
<div class="luf-field">
|
||||
<label for="zeit">Zeitbedarf in Minuten</label>
|
||||
<input id="zeit" type="text" inputmode="numeric" wire:model="durationMinutes">
|
||||
</div>
|
||||
<div class="luf-field">
|
||||
<label for="material">Material</label>
|
||||
<textarea id="material" rows="3" wire:model="materialNote"></textarea>
|
||||
</div>
|
||||
<div class="luf-field">
|
||||
<label for="notiz">Notiz zur nächsten Freigabe</label>
|
||||
<input id="notiz" type="text" wire:model="revisionNote">
|
||||
</div>
|
||||
<p class="luf-note">{{ $this->publishHint() }}</p>
|
||||
<h3>Freigegebene Fassungen</h3>
|
||||
@if ($this->versionChoices() === [])
|
||||
<p class="luf-empty">Noch keine freigegebene Fassung. Sie entsteht mit „Freigeben“, nicht beim Speichern des Entwurfs.</p>
|
||||
@else
|
||||
<ul class="luf-list">
|
||||
@foreach ($this->versionChoices() as $version)
|
||||
<li class="luf-row">
|
||||
<div>
|
||||
<strong>{{ $version['text'] }}</strong>
|
||||
@if ($version['current'])
|
||||
<span class="luf-meta">Letzter freigegebener Stand</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="luf-move">
|
||||
<button type="button" class="luf-quiet" wire:click="loadTemplate({{ $version['id'] }})">Als Vorlage laden</button>
|
||||
@if ($url = $this->previewUrlFor($version['id']))
|
||||
<a class="luf-link" href="{{ $url }}" target="_blank" rel="noopener">Vorschau</a>
|
||||
@endif
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
@if ($this->usageLines() !== [])
|
||||
@@ -290,11 +190,209 @@
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@if ($this->moduleOpen)
|
||||
<div class="luf-modal" role="dialog" aria-modal="true" aria-labelledby="modul-dialog-titel">
|
||||
<div class="luf-modal-card">
|
||||
<div class="luf-pane-head">
|
||||
<h2 id="modul-dialog-titel">{{ $this->hostLabel() }} bearbeiten</h2>
|
||||
<button type="button" class="luf-quiet" wire:click="closeModule">Abbrechen</button>
|
||||
</div>
|
||||
<p class="luf-note">Übernehmen schreibt die Angaben. Eine freigegebene Fassung bleibt dabei unverändert.</p>
|
||||
@if ($this->feedback !== '')
|
||||
<p class="luf-feedback" role="status">{{ $this->feedback }}</p>
|
||||
@endif
|
||||
<div class="luf-tabs" role="tablist" aria-label="Angaben">
|
||||
<button type="button" role="tab" class="luf-quiet" wire:click="$set('moduleTab', 'beschreibung')" aria-selected="{{ $this->moduleTab === 'beschreibung' ? 'true' : 'false' }}">Beschreibung</button>
|
||||
<button type="button" role="tab" class="luf-quiet" wire:click="$set('moduleTab', 'didaktik')" aria-selected="{{ $this->moduleTab === 'didaktik' ? 'true' : 'false' }}">Didaktik</button>
|
||||
<button type="button" role="tab" class="luf-quiet" wire:click="$set('moduleTab', 'einordnung')" aria-selected="{{ $this->moduleTab === 'einordnung' ? 'true' : 'false' }}">Einordnung</button>
|
||||
<button type="button" role="tab" class="luf-quiet" wire:click="$set('moduleTab', 'titelbild')" aria-selected="{{ $this->moduleTab === 'titelbild' ? 'true' : 'false' }}">Titelbild</button>
|
||||
</div>
|
||||
|
||||
@if ($this->moduleTab === 'beschreibung')
|
||||
<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">Titel</label>
|
||||
<input id="anzeige" type="text" wire:model="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>
|
||||
</div>
|
||||
<div class="luf-field">
|
||||
<label for="beschreibung">Ausführliche Beschreibung</label>
|
||||
<textarea id="beschreibung" rows="8" wire:model="description"></textarea>
|
||||
</div>
|
||||
@elseif ($this->moduleTab === 'didaktik')
|
||||
<p class="luf-note">Lernziel, Zeit und Material gehören zum fachlichen Stand. Sie landen im Entwurf und erzeugen erst mit Freigeben eine neue Fassung.</p>
|
||||
<div class="luf-field">
|
||||
<label for="lernziel">Lernziel</label>
|
||||
<textarea id="lernziel" rows="4" wire:model="learningGoal"></textarea>
|
||||
</div>
|
||||
<div class="luf-field">
|
||||
<label for="zeit">Zeitbedarf in Minuten</label>
|
||||
<input id="zeit" type="text" inputmode="numeric" wire:model="durationMinutes">
|
||||
</div>
|
||||
<div class="luf-field">
|
||||
<label for="material">Materialbedarf</label>
|
||||
<textarea id="material" rows="3" wire:model="materialNote"></textarea>
|
||||
</div>
|
||||
<div class="luf-field">
|
||||
<label for="notiz">Notiz zur nächsten Freigabe</label>
|
||||
<input id="notiz" type="text" wire:model="revisionNote">
|
||||
</div>
|
||||
@elseif ($this->moduleTab === 'einordnung')
|
||||
@forelse ($this->dimensionGroups() as $group)
|
||||
<fieldset class="luf-checks">
|
||||
<legend>{{ $group['label'] }}</legend>
|
||||
@foreach ($group['values'] as $value)
|
||||
<label>
|
||||
<input type="checkbox" value="{{ $value['id'] }}" wire:model="dimensionIds">
|
||||
{{ $value['label'] }}
|
||||
</label>
|
||||
@endforeach
|
||||
</fieldset>
|
||||
@empty
|
||||
<p class="luf-empty">Es sind noch keine fachlichen Themen angelegt.</p>
|
||||
@endforelse
|
||||
@else
|
||||
@php($cover = $this->coverPicture())
|
||||
<div class="luf-frame">
|
||||
@if ($cover['url'])
|
||||
<img src="{{ $cover['url'] }}" alt="{{ $this->thumbnailAlt !== '' ? $this->thumbnailAlt : 'Aktuelles Titelbild' }}">
|
||||
@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>
|
||||
@if ($caption = $this->imageCaption())
|
||||
<p class="luf-meta">{{ $caption }}</p>
|
||||
@endif
|
||||
@if ($this->thumbnailError)
|
||||
<p class="luf-feedback" role="status">{{ $this->thumbnailError }}</p>
|
||||
@endif
|
||||
<div class="luf-field">
|
||||
<label for="bild-alternativ">Alternativtext</label>
|
||||
<input id="bild-alternativ" type="text" wire:model="thumbnailAlt" placeholder="Was das Bild zeigt">
|
||||
</div>
|
||||
<div class="luf-scopes" role="group" aria-label="Art des Titelbilds">
|
||||
<button type="button" class="luf-quiet" wire:click="$set('imageMode', 'film')" aria-pressed="{{ $this->imageMode === 'film' ? 'true' : 'false' }}">Aus Film</button>
|
||||
<button type="button" class="luf-quiet" wire:click="$set('imageMode', 'bestand')" aria-pressed="{{ $this->imageMode === 'bestand' ? 'true' : 'false' }}">Vorhandenes Bild</button>
|
||||
<button type="button" class="luf-quiet" wire:click="$set('imageMode', 'upload')" aria-pressed="{{ $this->imageMode === 'upload' ? 'true' : 'false' }}">Hochladen</button>
|
||||
</div>
|
||||
@if ($this->imageMode === 'film')
|
||||
@php($films = $this->frameFilms())
|
||||
@if ($films === [])
|
||||
<p class="luf-empty">In diesem Aufbau ist kein Film. Nimm zuerst einen Film in den Aufbau auf.</p>
|
||||
@else
|
||||
<div class="luf-scopes" role="group" aria-label="Filmfassung">
|
||||
@foreach ($films as $film)
|
||||
<button type="button" class="luf-quiet" wire:click="$set('frameVersionId', {{ $film['version_id'] }})" aria-pressed="{{ (int) $this->frameVersionId === $film['version_id'] ? 'true' : 'false' }}">{{ $film['title'] }}, {{ $film['label'] }}</button>
|
||||
@endforeach
|
||||
</div>
|
||||
@php($chosen = collect($films)->firstWhere('version_id', (int) $this->frameVersionId))
|
||||
@if (is_array($chosen) && filled($chosen['file_url']))
|
||||
<div x-data="{ maxSeconds: 120, second: {{ json_encode($this->frameSecond) }} }">
|
||||
<video class="luf-video" controls preload="metadata" playsinline src="{{ $chosen['file_url'] }}" @loadedmetadata="maxSeconds = Math.max(1, $event.target.duration || 120)"></video>
|
||||
<div class="luf-field">
|
||||
<label for="filmstelle">Zeitposition in Sekunden</label>
|
||||
<input id="filmstelle" type="range" min="0" :max="maxSeconds" step="0.1" x-model="second" @change="$wire.set('frameSecond', second)">
|
||||
<input type="number" min="0" max="7200" step="0.1" x-model="second" @change="$wire.set('frameSecond', second)" aria-label="Zeitposition als Zahl">
|
||||
</div>
|
||||
</div>
|
||||
<p class="luf-note">Die Vorschau zeigt die Stelle, die als Titelbild übernommen wird. Die Filmdatei selbst bleibt unverändert.</p>
|
||||
@if ($frameUrl = $this->framePreviewUrl())
|
||||
<img class="luf-frame-still" src="{{ $frameUrl }}" alt="Vorschau der gewählten Filmstelle">
|
||||
@endif
|
||||
@elseif (is_array($chosen))
|
||||
<p class="luf-empty">Für diese Filmfassung liegt noch keine abspielbare Datei vor.</p>
|
||||
@endif
|
||||
@endif
|
||||
@elseif ($this->imageMode === 'bestand')
|
||||
<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>
|
||||
@forelse ($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="$set('imagePick', '{{ $medium['id'] }}')" aria-pressed="{{ $this->imagePick === (string) $medium['id'] ? 'true' : 'false' }}">Auswählen</button>
|
||||
</div>
|
||||
@empty
|
||||
<p class="luf-empty">Mindestens zwei Buchstaben zeigen vorhandene Bilder.</p>
|
||||
@endforelse
|
||||
@else
|
||||
<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>
|
||||
<p class="luf-note">Ein geschütztes Bild bleibt für die öffentliche Website gesperrt. Daran ändert das Titelbild nichts.</p>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<div class="luf-actions">
|
||||
<button type="button" class="luf-primary" wire:click="saveModule">Übernehmen</button>
|
||||
<button type="button" class="luf-quiet" wire:click="closeModule">Abbrechen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($this->partOpen && $this->selectedMember())
|
||||
@php($member = $this->selectedMember())
|
||||
<div class="luf-modal" role="dialog" aria-modal="true" aria-labelledby="teil-dialog-titel">
|
||||
<div class="luf-modal-card luf-modal-narrow">
|
||||
<div class="luf-pane-head">
|
||||
<h2 id="teil-dialog-titel">Bestandteil bearbeiten</h2>
|
||||
<button type="button" class="luf-quiet" wire:click="closePart">Abbrechen</button>
|
||||
</div>
|
||||
<p class="luf-kicker">{{ $member['kind'] }}</p>
|
||||
<h3>{{ $member['title'] }}</h3>
|
||||
<p class="luf-meta">{{ $member['version_label'] }}</p>
|
||||
@if ($this->feedback !== '')
|
||||
<p class="luf-feedback" role="status">{{ $this->feedback }}</p>
|
||||
@endif
|
||||
<div class="luf-field">
|
||||
<label for="rolle">Rolle an dieser Stelle</label>
|
||||
<input id="rolle" type="text" wire:model="roleDraft">
|
||||
</div>
|
||||
<p class="luf-note">Die Rolle gilt nur in diesem Aufbau. Dieselbe Fassung kann woanders eine andere Rolle haben.</p>
|
||||
@if (count($this->selectedAlternatives()) > 1)
|
||||
<h3>Zulässige Fassung</h3>
|
||||
<div class="luf-scopes">
|
||||
@foreach ($this->selectedAlternatives() as $alternative)
|
||||
<button type="button" class="luf-quiet" wire:click="useVersion({{ $this->selected }}, '{{ $alternative['target'] }}')" aria-pressed="{{ $member['target'] === $alternative['target'] ? 'true' : 'false' }}">{{ $alternative['label'] }}</button>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<div class="luf-actions">
|
||||
<button type="button" class="luf-primary" wire:click="savePart">Übernehmen</button>
|
||||
<button type="button" class="luf-quiet" wire:click="closePart">Abbrechen</button>
|
||||
@if ($member['open_url'])
|
||||
<a class="luf-link" href="{{ $member['open_url'] }}" target="_blank" rel="noopener">Ansehen</a>
|
||||
@endif
|
||||
@if ($member['edit_url'])
|
||||
<a class="luf-link" href="{{ $member['edit_url'] }}?zurueck={{ urlencode($this->selfUrl()) }}">Im eigenen Editor öffnen</a>
|
||||
@endif
|
||||
<button type="button" class="luf-quiet" wire:click="removePart({{ $this->selected }})">Aus dem Aufbau nehmen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($this->pickerOpen)
|
||||
<div class="luf-modal" role="dialog" aria-modal="true" aria-labelledby="picker-titel">
|
||||
<div class="luf-modal-card">
|
||||
<div class="luf-pane-head">
|
||||
<h2 id="picker-titel">Bestandteil hinzufügen</h2>
|
||||
<h2 id="picker-titel">Material auswählen</h2>
|
||||
<button type="button" class="luf-quiet" wire:click="closePicker">Schließen</button>
|
||||
</div>
|
||||
<div class="luf-field">
|
||||
@@ -327,16 +425,25 @@
|
||||
<ul class="luf-cards">
|
||||
@foreach ($result['items'] as $hit)
|
||||
<li wire:key="treffer-{{ $hit['target'] }}">
|
||||
<button type="button" class="luf-card luf-tone-{{ $hit['tone'] ?? 'text' }}" wire:click="$set('pickerSelected', '{{ $hit['target'] }}')" aria-pressed="{{ $this->pickerSelected === $hit['target'] ? 'true' : 'false' }}">
|
||||
@if (! empty($hit['image']))
|
||||
<img class="luf-thumb" src="{{ $hit['image'] }}" alt="">
|
||||
@else
|
||||
<span class="luf-thumb luf-fallback" aria-hidden="true">{{ mb_substr((string) $hit['kind'], 0, 1) }}</span>
|
||||
@endif
|
||||
<span>
|
||||
<button type="button" class="luf-card luf-tone-{{ $hit['tone'] ?? 'text' }}" wire:click="$set('pickerSelected', '{{ $hit['target'] }}')" aria-pressed="{{ $this->pickerMatches((string) ($hit['identity'] ?? '')) ? 'true' : 'false' }}">
|
||||
<span class="luf-figure">
|
||||
@if (! empty($hit['image']))
|
||||
<img src="{{ $hit['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
|
||||
</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>
|
||||
@if (filled($hit['summary'] ?? null))
|
||||
<span class="luf-summary">{{ \Illuminate\Support\Str::limit((string) $hit['summary'], 120) }}</span>
|
||||
@endif
|
||||
<span class="luf-meta">Aktueller Stand · {{ $hit['version_label'] }}</span>
|
||||
</span>
|
||||
</button>
|
||||
</li>
|
||||
@@ -351,7 +458,25 @@
|
||||
@if (filled($detail['summary'] ?? null))
|
||||
<p>{{ $detail['summary'] }}</p>
|
||||
@endif
|
||||
<p class="luf-note">Übernehmen verweist auf diese vorhandene Fassung. Es wird nichts kopiert.</p>
|
||||
@if (($detail['tone'] ?? '') === 'film')
|
||||
@if (filled($detail['file_url'] ?? null))
|
||||
<video class="luf-video" controls preload="metadata" playsinline src="{{ $detail['file_url'] }}"></video>
|
||||
@else
|
||||
<p class="luf-note">Für diese Fassung liegt noch keine abspielbare Datei vor. Ansehen öffnet die vorhandene Vorschau.</p>
|
||||
@endif
|
||||
@endif
|
||||
@if (count($this->pickerVersions()) > 1)
|
||||
<h3>Fassungen</h3>
|
||||
<p class="luf-note">Standard ist der aktuelle Stand. Eine andere zulässige Fassung wählst du vor dem Übernehmen.</p>
|
||||
<div class="luf-scopes">
|
||||
@foreach ($this->pickerVersions() as $version)
|
||||
<button type="button" class="luf-quiet" wire:click="$set('pickerSelected', '{{ $version['target'] }}')" aria-pressed="{{ $this->pickerSelected === $version['target'] ? 'true' : 'false' }}">{{ $version['label'] }}@if ($version['current']) , aktueller Stand @endif</button>
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<p class="luf-note">Das ist der aktuelle Stand. Eine weitere zulässige Fassung liegt nicht vor.</p>
|
||||
@endif
|
||||
<p class="luf-note">Übernehmen verweist auf diese vorhandene Fassung. Es wird nichts kopiert und keine neue Fassung des Eintrags angelegt.</p>
|
||||
<div class="luf-actions">
|
||||
@if ($detail['open_url'])
|
||||
<a class="luf-link" href="{{ $detail['open_url'] }}" target="_blank" rel="noopener">Ansehen</a>
|
||||
@@ -359,7 +484,7 @@
|
||||
<button type="button" class="luf-primary" wire:click="addPart('{{ $detail['target'] }}')">Übernehmen</button>
|
||||
</div>
|
||||
@else
|
||||
<p class="luf-empty">Wähle einen Eintrag, um ihn anzusehen und zu übernehmen.</p>
|
||||
<p class="luf-empty">Wähle einen Eintrag, sieh ihn dir an und übernimm ihn in den Entwurf.</p>
|
||||
@endif
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user