Zeige Kurse im Mitgliederbereich und mach hochgeladene Fassungen ansehbar.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b374335b3a
commit
4f2e5a5f3b
24 files changed
+413
-47
No files matched your search
@@ -19,14 +19,14 @@ class ListCompositions extends ListRecords
|
||||
|
||||
public function getSubheading(): string|Htmlable|null
|
||||
{
|
||||
return 'Eine freie Zusammenstellung fertiger Fassungen, zum Beispiel Übung oder Programm. Verkauf und Rechte entstehen erst am Lizenzartikel und am Angebot.';
|
||||
return 'Hier entsteht der Kurs: fertige Fassungen in einer Reihenfolge, zum Beispiel Film und Merkblatt. Dieselbe Fassung kann in weiteren Kursen stecken. Verkauf und Rechte entstehen am Lizenzartikel, am Paket und am Angebot.';
|
||||
}
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
Action::make('create')
|
||||
->label('Komposition anlegen')
|
||||
->label('Kurs anlegen')
|
||||
->visible(fn (): bool => ContentElementResource::editor())
|
||||
->schema([
|
||||
TextInput::make('designation')->label('Bezeichnung')->required(),
|
||||
@@ -34,7 +34,7 @@ protected function getHeaderActions(): array
|
||||
->action(function (array $data): void {
|
||||
$this->report(function () use ($data): void {
|
||||
app(ContentService::class)->createComposition($data['designation']);
|
||||
}, 'Die Komposition ist angelegt.');
|
||||
}, 'Der Kurs ist angelegt.');
|
||||
}),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user