Zeige Kurse im Mitgliederbereich und mach hochgeladene Fassungen ansehbar.
Deploy Test / test (push) Successful in 14s
Deploy Test / deploy (push) Successful in 22s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 10:27:20 +01:00
1 parent b374335b3a
commit 4f2e5a5f3b
24 files changed
+413 -47

No files matched your search

@@ -22,11 +22,11 @@ class CompositionResource extends Resource
protected static string|\UnitEnum|null $navigationGroup = 'Inhalte';
protected static ?string $navigationLabel = 'Kompositionen';
protected static ?string $navigationLabel = 'Kurse und Übungen';
protected static ?string $modelLabel = 'Komposition';
protected static ?string $modelLabel = 'Kurs oder Übung';
protected static ?string $pluralModelLabel = 'Kompositionen';
protected static ?string $pluralModelLabel = 'Kurse und Übungen';
protected static ?string $recordTitleAttribute = 'designation';
@@ -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.');
}),
];
}
@@ -27,10 +27,10 @@ protected function getHeaderActions(): array
Action::make('publish')
->label('Fassung veröffentlichen')
->schema([
Repeater::make('members')->label('Mitglieder')->schema([
TextInput::make('role')->label('Rolle')->required(),
Select::make('target')->label('Fassung')->options(fn (): array => CatalogOptions::readyTargets())->required(),
])->minItems(1),
Repeater::make('members')->label('Bausteine')->schema([
TextInput::make('role')->label('Rolle im Kurs')->placeholder('Film, Merkblatt, Übung')->required(),
Select::make('target')->label('Bereitgestellte Fassung')->options(fn (): array => CatalogOptions::readyTargets())->required(),
])->minItems(1)->helperText('Nur bereitgestellte Fassungen. Eine Datei, die noch übernommen wird, erscheint hier noch nicht.'),
TextInput::make('note')->label('Bestätigungsnotiz'),
])
->action(function (array $data): void {