CI Feature / test (push) Successful in 2m34s
Eigener Eintrag Übungen unter Inhalte (Bestand, Anlegen, gemeinsamer Aufbau mit Varianten, Verwendung und Variantenauswahl im Modul und Programm), Verwendungsnachweis über verschachtelte und ältere Stände, Auswirkungsbericht einer Mediensperre, gesperrte Bestandteile verhindern die Angebotsaktivierung, Vorschaubilder gesperrter Medien werden nicht mehr ausgeliefert, Rückfalltest gegen die Daten des neuen Stands. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Practices;
|
|
|
|
use App\Domain\Catalog\CompositionKind;
|
|
use App\Filament\Resources\Compositions\CompositionKindResource;
|
|
use App\Filament\Resources\Practices\Pages\EditPractice;
|
|
use App\Filament\Resources\Practices\Pages\ListPractices;
|
|
|
|
/**
|
|
* Die fachliche Übung. Der ältere Eintrag „Module“ (`ExerciseResource`, Adresse `uebungen`) bleibt unverändert und
|
|
* zeigt die Zusammenstellungen der Art `uebung`; hier stehen die Übungen mit Varianten.
|
|
*/
|
|
class PracticeResource extends CompositionKindResource
|
|
{
|
|
protected static ?string $slug = 'fachuebungen';
|
|
|
|
protected static ?string $navigationLabel = 'Übungen';
|
|
|
|
protected static ?string $modelLabel = 'Übung';
|
|
|
|
protected static ?string $pluralModelLabel = 'Übungen';
|
|
|
|
protected static ?int $navigationSort = 5;
|
|
|
|
public static function kind(): CompositionKind
|
|
{
|
|
return CompositionKind::Exercise;
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListPractices::route('/'),
|
|
'edit' => EditPractice::route('/{record}'),
|
|
];
|
|
}
|
|
}
|