Importierte Übungen werden im selben Editor bearbeitet und als neue Fassung gespeichert. Lokal bearbeitete Texte und Felder bleiben bei der nächsten Übernahme erhalten, bei Änderung auf beiden Seiten entscheidet die Redaktion. Ein Fehler im Editor setzte die Herkunft der Varianten auf lokal und ist behoben. Übungen haben einen Einstieg unter Inhalte, Fachliche Säulen und Redaktionelle Stammdaten stehen in der Gruppe Stammdaten, die Übernahme ist ein Weg im Übungsbestand. 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 = 2;
|
|
|
|
public static function kind(): CompositionKind
|
|
{
|
|
return CompositionKind::Exercise;
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListPractices::route('/'),
|
|
'edit' => EditPractice::route('/{record}'),
|
|
];
|
|
}
|
|
}
|