Richte Redaktionskarten und Redaktionskopf am Zeilenlayout aus.
This commit is contained in:
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')
|
||||
|
||||
Reference in new issue
Block a user