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
@@ -184,6 +184,10 @@ public function mount(int|string $record): void
|
||||
|
||||
public function getHeading(): string|Htmlable|null
|
||||
{
|
||||
if ($this->redaktionOpen) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$title = trim($this->displayTitle) !== '' ? trim($this->displayTitle) : trim($this->designation);
|
||||
|
||||
return $title !== '' ? $title : parent::getHeading();
|
||||
@@ -191,6 +195,10 @@ public function getHeading(): string|Htmlable|null
|
||||
|
||||
public function getSubheading(): string|Htmlable|null
|
||||
{
|
||||
if ($this->redaktionOpen) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->hostKind()->deskExplanation().' '.$this->statusSentence();
|
||||
}
|
||||
|
||||
@@ -206,6 +214,10 @@ protected function mutateFormDataBeforeFill(array $data): array
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
if ($this->redaktionOpen) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return [
|
||||
Action::make('preview')
|
||||
->label('Vorschau für Trainer')
|
||||
|
||||
Reference in new issue
Block a user