Texte, Medienzuordnung und Einordnung teilen sich einen Arbeitsplatz. Fassungen, Rechte und das Datenmodell bleiben unverändert.
53 lines
2.5 KiB
PHP
53 lines
2.5 KiB
PHP
@php
|
|
$unsaved = $this->redaktionUnsaved();
|
|
@endphp
|
|
<section class="vw-redaktion" aria-label="Redaktion">
|
|
<header class="vw-kopf">
|
|
<div>
|
|
@if (! empty($zurueckAktion))
|
|
<button type="button" class="luf-quiet" wire:click="{{ $zurueckAktion }}">{{ $zurueckLabel }}</button>
|
|
@endif
|
|
<p class="luf-kicker">Redaktion · {{ $objektArt }}</p>
|
|
<h2>{{ $objektTitel }}</h2>
|
|
<p class="luf-status" role="status">{{ $unsaved ? 'Änderungen nicht gespeichert' : 'Redaktion entspricht dem gespeicherten Stand' }}</p>
|
|
</div>
|
|
<div class="luf-actions">
|
|
@if ($this->canEditEditorial())
|
|
<button type="button" class="luf-primary" wire:click="{{ $speichernAktion }}">Redaktion speichern</button>
|
|
@endif
|
|
</div>
|
|
</header>
|
|
<p class="luf-note">{{ $speichernHinweis }}</p>
|
|
@php
|
|
$meldung = $this->deskFeedback;
|
|
if ($meldung === '' && property_exists($this, 'feedback')) {
|
|
$meldung = (string) $this->feedback;
|
|
}
|
|
@endphp
|
|
@if ($meldung !== '')
|
|
<p class="luf-feedback" role="status">{{ $meldung }}</p>
|
|
@endif
|
|
<div class="luf-tabs" role="tablist" aria-label="Redaktion">
|
|
<button type="button" role="tab" class="luf-quiet" wire:click="$set('redaktionTab', 'texte')" aria-selected="{{ $this->redaktionTab === 'texte' ? 'true' : 'false' }}">Texte</button>
|
|
<button type="button" role="tab" class="luf-quiet" wire:click="$set('redaktionTab', 'medien')" aria-selected="{{ $this->redaktionTab === 'medien' ? 'true' : 'false' }}">Präsentationsmedien</button>
|
|
<button type="button" role="tab" class="luf-quiet" wire:click="$set('redaktionTab', 'einordnung')" aria-selected="{{ $this->redaktionTab === 'einordnung' ? 'true' : 'false' }}">Einordnung</button>
|
|
</div>
|
|
@if ($this->redaktionTab === 'medien')
|
|
@include('filament.editorial.presentation')
|
|
@if ($this->canEditEditorial())
|
|
<div class="luf-actions">
|
|
@if (! empty($pickerAktion))
|
|
<button type="button" class="luf-primary" wire:click="{{ $pickerAktion }}">Medien zuordnen</button>
|
|
@endif
|
|
</div>
|
|
@if (empty($pickerAktion))
|
|
@include('filament.editorial.presentation-picker')
|
|
@endif
|
|
@endif
|
|
@elseif ($this->redaktionTab === 'einordnung')
|
|
@include($einordnung)
|
|
@else
|
|
@include($texte)
|
|
@endif
|
|
</section>
|