Files
laraundfelix/resources/views/filament/editorial/license-desk.blade.php
T
LarsandCursor f29ea58fd5
CI Feature / test (push) Successful in 54s
Deploy Test / test (push) Successful in 47s
Deploy Test / deploy (push) Successful in 24s
Ergänze die gemeinsame redaktionelle Basis an den Fachobjekten.
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>
2026-11-19 07:54:36 +01:00

62 lines
3.3 KiB
PHP

@php($profile = $this->editorialProfile('artikel'))
@php($editable = $this->canEditEditorial())
<section class="luf-redaktion" aria-label="Redaktion des Lizenzartikels">
<h2>Redaktion</h2>
<p>Eigene Angaben ersetzen nur die Präsentation dieses Lizenzartikels. Leer gelassene Felder bleiben mit der fachlichen Quelle verbunden. Preise, Rechte und der Artikelstand stehen oben und werden hier nicht geändert.</p>
@if ($profile->source)
<p>Fachliche Quelle: {{ $profile->source->display_title ?: ($profile->source->working_title ?? $profile->source->designation) }}.</p>
@else
<p>Keine eindeutige fachliche Quelle. Es wird nichts aus einem Modul, Programm oder Medium abgeleitet.</p>
@endif
@if ($this->deskFeedback !== '')
<p role="status">{{ $this->deskFeedback }}</p>
@endif
<form wire:submit="saveLicenseEditorial">
<label>Interner Arbeitstitel
<input type="text" wire:model="workingTitle" @disabled(! $editable)>
</label>
<label>Anzeigename
<input type="text" wire:model="displayTitle" placeholder="{{ $profile->origin('display_title') === 'quelle' ? $profile->value('display_title') : '' }}" @disabled(! $editable)>
<span>{{ $profile->originLabel('display_title') }}</span>
</label>
<label>Teaser
<textarea rows="2" wire:model="teaser" placeholder="{{ $profile->origin('teaser') === 'quelle' ? $profile->value('teaser') : '' }}" @disabled(! $editable)></textarea>
<span>{{ $profile->originLabel('teaser') }}</span>
</label>
<label>Kurzbeschreibung
<textarea rows="3" wire:model="summary" placeholder="{{ $profile->origin('summary') === 'quelle' ? $profile->value('summary') : '' }}" @disabled(! $editable)></textarea>
<span>{{ $profile->originLabel('summary') }}</span>
</label>
<label>Ausführliche Beschreibung
<textarea rows="6" wire:model="descriptionText" placeholder="{{ $profile->origin('description') === 'quelle' ? $profile->value('description') : '' }}" @disabled(! $editable)></textarea>
<span>{{ $profile->originLabel('description') }}</span>
</label>
<label>Suchbegriffe
<input type="text" wire:model="searchTerms" @disabled(! $editable)>
</label>
<label>Inhaltsart
<select wire:model="kindId" @disabled(! $editable)>
<option value="">Keine</option>
@foreach (\App\Domain\Catalog\EditorialContentKind::selectOptions() as $id => $label)
<option value="{{ $id }}">{{ $label }}</option>
@endforeach
</select>
</label>
@foreach ($this->licenseDimensionGroups() as $group)
<fieldset>
<legend>{{ $group['label'] }}</legend>
@foreach ($group['values'] as $value)
<label><input type="checkbox" value="{{ $value['id'] }}" wire:model="dimensionIds" @disabled(! $editable)> {{ $value['label'] }}</label>
@endforeach
</fieldset>
@endforeach
@if ($editable)
<button type="submit">Redaktion speichern</button>
@endif
</form>
@include('filament.editorial.variants')
@include('filament.editorial.presentation')
@include('filament.editorial.presentation-picker')
</section>