Richte Redaktionskarten und Redaktionskopf am Zeilenlayout aus.
Deploy Test / test (push) Successful in 1m3s
Deploy Test / deploy (push) Successful in 23s

This commit is contained in:
Lars committed 2026-11-19 21:31:39 +01:00
1 parent b9fe0e3791
commit 41658d98dd
12 files changed
+248 -68

No files matched your search

@@ -122,13 +122,21 @@ public function mount(int|string $record): void
$this->syncBodyDraft();
}
public function getHeading(): string|Htmlable
public function getHeading(): string|Htmlable|null
{
if ($this->redaktionOpen) {
return null;
}
return (string) $this->getRecord()->working_title;
}
public function getSubheading(): string|Htmlable|null
{
if ($this->redaktionOpen) {
return null;
}
return 'Texte und Vorschaubild ändern keine Fassung. Eine neue Datei oder ein geänderter Lehrtext braucht eine neue Fassung.';
}
@@ -312,6 +320,10 @@ public function deactivateAction(): Action
protected function getHeaderActions(): array
{
if ($this->redaktionOpen) {
return [];
}
return [
Action::make('releaseVersion')
->label('Fassung freigeben')