CI Feature / test (push) Successful in 56s
Medium, Modul, Programm und Lizenzartikel nutzen denselben Objektkopf, dieselben Register (Texte, Präsentationsmedien, Einordnung) und denselben visuellen Picker. Präsentationsmedien, Abweichungen und Texte bilden einen Arbeitsstand, den nur „Redaktion speichern“ schreibt; Austausch behält die Position, Sortierung bleibt in der Rolle. Der Wechsel zur Redaktion und zurück erhält offene Eingaben des Ausgangseditors. Entfernt versteckte Mitspeicherungen: Der Didaktikdialog schreibt keine Redaktionstexte mehr, die Website-Freigabe keine offenen Quellenzeilen, Entwurf verwerfen setzt keine offenen Redaktionseingaben zurück. Tests, die alte Orte oder CSS-Zeichenketten prüften, sind auf die neue Bedienung umgestellt; neue Tests decken Arbeitsstand, Austausch, Abbrechen und Rückweg ab. Datenmodell, Fassungen und Rechte bleiben unverändert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
86 lines
4.4 KiB
PHP
86 lines
4.4 KiB
PHP
@if ($this->redaktionOpen)
|
|
@include('filament.verwaltung.redaktion')
|
|
@else
|
|
@php
|
|
/** @var \App\Domain\Catalog\LicenseArticle $artikel */
|
|
$artikel = $this->getRecord();
|
|
$profil = $this->editorialProfile('artikel');
|
|
$quelle = $this->redaktionQuelle();
|
|
$titel = $this->redaktionTitel();
|
|
$offen = $this->redaktionOffen();
|
|
$aktionen = [];
|
|
if ($this->canEditEditorial()) {
|
|
$aktionen[] = ['label' => 'Redaktion bearbeiten', 'wire' => "openRedaktion('texte')", 'art' => 'line', 'icon' => 'stift'];
|
|
}
|
|
$mehr = [
|
|
['label' => 'Stand veröffentlichen', 'wire' => "mountAction('release')", 'hinweis' => 'Neuer Artikelstand aus einer freigegebenen Fassung.'],
|
|
['label' => 'Stand zurückziehen', 'wire' => "mountAction('withdraw')", 'hinweis' => 'Rechtlich notwendiger Rückzug mit Begründung.', 'gefahr' => true],
|
|
];
|
|
@endphp
|
|
<div class="vw">
|
|
@include('filament.verwaltung.kopf', [
|
|
'brot' => ['Lizenzartikel', $titel],
|
|
'titel' => $titel,
|
|
'typ' => 'Lizenzartikel · Kennung '.$artikel->code.($artikel->product_line ? ' · '.$artikel->product_line : ''),
|
|
'status' => [
|
|
['text' => \Illuminate\Support\Str::before($stand[0] ?? '', ' · Dasselbe'), 'ton' => $artikel->current_release_id ? 'gut' : 'neutral'],
|
|
$offen ? ['text' => 'Redaktion mit ungespeicherten Änderungen', 'ton' => 'offen', 'aktion' => ['label' => 'Zur Redaktion', 'wire' => "openRedaktion('".$this->redaktionTab."')"]] : null,
|
|
],
|
|
'aktionen' => $aktionen,
|
|
'mehr' => $mehr,
|
|
])
|
|
|
|
@if ($this->deskFeedback !== '')
|
|
<p class="vw-meldung" role="status" style="margin-bottom: 1rem;"><span>{{ $this->deskFeedback }}</span></p>
|
|
@endif
|
|
|
|
<div class="vw-medien-raster">
|
|
<section class="vw-karte-box" aria-labelledby="artikel-redaktion">
|
|
<div class="vw-spalte-kopf">
|
|
<h2 id="artikel-redaktion">Präsentation des Artikels</h2>
|
|
@if ($quelle)
|
|
<span class="vw-feld-hilfe">Quelle: {{ $quelle['titel'] }} ({{ $quelle['art'] }})</span>
|
|
@endif
|
|
</div>
|
|
<dl class="vw-angaben">
|
|
@foreach (['display_title' => 'Name', 'teaser' => 'Teaser', 'summary' => 'Kurzbeschreibung'] as $feld => $label)
|
|
<dt>{{ $label }}</dt>
|
|
<dd>
|
|
{{ $profil->value($feld) ?? 'Keine Angabe' }}
|
|
@if ($profil->origin($feld) === 'quelle')
|
|
<span class="vw-kapsel">Übernommen</span>
|
|
@elseif ($profil->origin($feld) === 'eigen')
|
|
<span class="vw-kapsel is-eigen">Eigene Angabe</span>
|
|
@endif
|
|
</dd>
|
|
@endforeach
|
|
<dt>Präsentationsmedien</dt>
|
|
<dd>{{ count(app(\App\Domain\Catalog\PresentationMedia::class)->staged($artikel)) }} Zuordnungen</dd>
|
|
</dl>
|
|
@if ($this->canEditEditorial())
|
|
<div><button type="button" class="vw-btn is-line" wire:click="openRedaktion('texte')">@include('filament.verwaltung.icon', ['name' => 'stift'])Redaktion bearbeiten</button></div>
|
|
@endif
|
|
</section>
|
|
<aside class="vw-spalte">
|
|
<section class="vw-karte-box" aria-labelledby="artikel-stand">
|
|
<h2 id="artikel-stand">Aktueller Stand</h2>
|
|
<ul style="margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem;">
|
|
@foreach ($stand as $zeile)
|
|
<li>{{ $zeile }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</section>
|
|
<section class="vw-karte-box" aria-labelledby="artikel-angebote">
|
|
<h2 id="artikel-angebote">Pakete und Angebote</h2>
|
|
<p class="vw-feld-hilfe">Wo dieser Artikel lizenziert wird.</p>
|
|
@forelse ($kontext as $zeile)
|
|
<p>{{ $zeile }}</p>
|
|
@empty
|
|
<p class="vw-feld-hilfe">In keinem Paket und keinem Angebot.</p>
|
|
@endforelse
|
|
</section>
|
|
</aside>
|
|
</div>
|
|
</div>
|
|
@endif
|