Pflege Übungen im Aufbauarbeitsplatz und weise Verwendung und Sperrfolgen nach
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>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-23 17:03:32 +01:00
1 parent d1f97a351a
commit bbee288e69
22 files changed
+1104 -26

No files matched your search

@@ -30,7 +30,7 @@
<div class="vw vw-aufbauseite" x-data x-on:keydown.window.ctrl.s.prevent="$wire.saveDraft()">
@include('filament.verwaltung.kopf', [
'zurueck' => ['label' => 'Zum Arbeitsplatz', 'href' => \App\Filament\Pages\EditorialDesk::getUrl()],
'brot' => [['label' => $this->isProgram() ? 'Programme' : 'Module', 'href' => $this::getResource()::getUrl('index')], $titel],
'brot' => [['label' => $this->hostKind()->plural() === 'Kurse' ? 'Programme' : $this->hostKind()->plural(), 'href' => $this::getResource()::getUrl('index')], $titel],
'titel' => $titel,
'typ' => $this->hostLabel().' · '.$typ,
'status' => [
@@ -2,7 +2,7 @@
@php
$cover = $this->coverPicture();
$filme = $this->frameFilms();
$ort = $this->isProgram() ? 'dieses Programms' : 'dieses Moduls';
$ort = $this->isProgram() ? 'dieses Programms' : ($this->isExercise() ? 'dieser Übung' : 'dieses Moduls');
@endphp
<div class="vw-medien-raster">
<section class="vw-medien-haupt" aria-labelledby="didaktik-titel">
@@ -19,9 +19,40 @@
<input class="vw-eingabe" type="text" wire:model.live.blur="revisionNote">
</label>
</div>
<label class="vw-feldlabel">Materialbedarf
<label class="vw-feldlabel">{{ $this->isExercise() ? 'Ausstattung' : 'Materialbedarf' }}
<textarea class="vw-eingabe" rows="3" wire:model.live.blur="materialNote"></textarea>
</label>
@if ($this->isExercise())
<div class="vw-raster-2">
<label class="vw-feldlabel">Zeitbedarf bis (Minuten)
<input class="vw-eingabe" type="text" inputmode="numeric" wire:model.live.blur="durationMax">
</label>
<label class="vw-feldlabel">Voraussetzungen
<input class="vw-eingabe" type="text" wire:model.live.blur="prerequisites">
</label>
</div>
<h2 id="varianten-titel" class="vw-abschnitt-titel">Varianten</h2>
<p class="vw-feld-hilfe">Eine Übung kann mehrere Durchführungsvarianten haben. Gemeinsame Bestandteile gelten für alle; jedem Bestandteil ordnest du im Aufbau eine Variante zu.</p>
<ul class="vw-liste" aria-labelledby="varianten-titel">
@foreach ($this->variants as $i => $variant)
<li class="vw-raster-2">
<label class="vw-feldlabel">Name der Variante
<input class="vw-eingabe" type="text" wire:model.live.blur="variants.{{ $i }}.name">
</label>
<label class="vw-feldlabel">Beschreibung
<input class="vw-eingabe" type="text" wire:model.live.blur="variants.{{ $i }}.description">
</label>
<button type="button" class="vw-link" wire:click="removeVariant('{{ $variant['key'] }}')">Variante entfernen</button>
</li>
@endforeach
</ul>
<div class="vw-raster-2">
<label class="vw-feldlabel">Neue Variante
<input class="vw-eingabe" type="text" wire:model="newVariantName" wire:keydown.enter="addVariant" placeholder="z. B. Mit Film">
</label>
<button type="button" class="button button-secondary" wire:click="addVariant">Variante anlegen</button>
</div>
@endif
<p class="vw-feld-hilfe">Name, Texte, Präsentationsmedien und Einordnung bearbeitest du in der Redaktion.
<button type="button" class="vw-link" wire:click="openRedaktion('texte')">Redaktion öffnen</button></p>
</section>
@@ -6,7 +6,7 @@
$gewaehlt = $auswahl !== null ? $members[$auswahl] : null;
$symbol = fn (?string $tone): string => match ($tone) { 'film' => 'film', 'audio' => 'audio', 'dokument' => 'dokument', 'modul', 'programm' => 'modul', default => 'dokument' };
$istKomposition = fn (array $m): bool => (bool) preg_match('/^composition(-draft)?:/', (string) ($m['target'] ?? ''));
$ort = ($this->isProgram() ? 'im Programm' : 'im Modul');
$ort = ($this->isProgram() ? 'im Programm' : ($this->isExercise() ? 'in der Übung' : 'im Modul'));
@endphp
<div class="vw-aufbau">
<section class="vw-struktur" aria-labelledby="struktur-titel">
@@ -196,6 +196,38 @@
<label class="vw-feldlabel">Hinweis an dieser Stelle
<textarea class="vw-eingabe" rows="4" wire:model.live.blur="noteDraft" placeholder="Was Trainer an dieser Stelle beachten sollen"></textarea>
</label>
@if ($this->isExercise())
<label class="vw-feldlabel">Variante
<select class="vw-eingabe" wire:change="setMemberVariant({{ $auswahl }}, $event.target.value)">
<option value="" @selected(($gewaehlt['variant'] ?? null) === null)>Gemeinsam (gilt für alle Varianten)</option>
@foreach ($this->variants as $variant)
<option value="{{ $variant['key'] }}" @selected(($gewaehlt['variant'] ?? null) === $variant['key'])>{{ $variant['name'] ?: $variant['key'] }}</option>
@endforeach
</select>
</label>
<label class="vw-feldlabel">Verwendung
<select class="vw-eingabe" wire:change="setMemberRequirement({{ $auswahl }}, $event.target.value)">
<option value="erforderlich" @selected(($gewaehlt['requirement'] ?? 'erforderlich') === 'erforderlich')>Erforderlich</option>
<option value="ergaenzend" @selected(($gewaehlt['requirement'] ?? 'erforderlich') === 'ergaenzend')>Ergänzend</option>
</select>
<span class="vw-feld-hilfe">Fehlt ein erforderlicher Bestandteil, gilt die Variante als nicht vollständig durchführbar. Ein ergänzender entfällt mit Hinweis.</span>
</label>
@endif
@php($angeboten = $this->offeredVariants((string) ($gewaehlt['target'] ?? '')))
@if ($angeboten !== [])
<fieldset class="vw-chipgruppe">
<legend>Angebotene Varianten</legend>
<div class="vw-chips">
@foreach ($angeboten as $variante)
<label>
<input type="checkbox" @checked(! is_array($gewaehlt['selection'] ?? null) || in_array($variante['key'], $gewaehlt['selection'], true)) wire:click="toggleVariantSelection({{ $auswahl }}, '{{ $variante['key'] }}')">
<span>{{ $variante['name'] }}</span>
</label>
@endforeach
</div>
<span class="vw-feld-hilfe">Gilt nur in diesem Aufbau. Nur die angebotenen Varianten werden im Stand festgeschrieben.</span>
</fieldset>
@endif
@if (count($alternativen) > 1)
<fieldset class="vw-chipgruppe">
<legend>Verwendete Fassung</legend>