V2.1: nichtlineare Prozessansicht, Begründung der Pflichtschritte, Bedienelemente der neuen Einstellungen
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f8561fe0e5
commit
fdf226535b
8 files changed
+77
-8
No files matched your search
@@ -112,6 +112,10 @@
|
||||
</div>
|
||||
<div style="font-size:.85rem;margin-top:.25rem">{{ $step['purpose'] }}</div>
|
||||
<div style="{{ $muted }};margin-top:.25rem">
|
||||
@if ($step['needs'] !== []) braucht zuerst: {{ implode(', ', $step['needs']) }} · @elseif ($step['on']) läuft unabhängig · @endif
|
||||
@if ($step['after'] !== []) soll nach: {{ implode(', ', $step['after']) }} · @endif
|
||||
@if ($step['condition']) nur wenn: {{ $step['condition'] }} · @endif
|
||||
@if ($step['executions'] !== [] && ! $step['optional']) So darf das erfüllt werden: {{ implode(', ', $step['executions']) }}@if ($step['why']) – {{ $step['why'] }}@endif · @endif
|
||||
Wer: {{ $performers[$step['performer']] ?? $step['performer'] ?? '–' }}
|
||||
@if ($step['waits'] !== []) · kann warten auf: {{ implode(', ', array_map(fn ($wait) => ['guest' => 'Gast', 'portal' => 'Portal', 'landlord' => 'Sie', 'time' => 'Frist'][$wait] ?? $wait, $step['waits'])) }}@endif
|
||||
@if (! $step['on'] && $step['reason']) · <em>übersprungen: {{ $step['reason'] }}</em>@endif
|
||||
@@ -140,7 +144,14 @@
|
||||
|
||||
@foreach ($step['parameters'] as $parameter)
|
||||
<label style="display:block;font-size:.85rem;margin-top:.4rem">{{ $parameter['question'] }}
|
||||
<input type="text" wire:model.live.debounce.600ms="drafts.{{ $this->intake }}.settings.{{ $parameter['key'] }}" placeholder="{{ $parameter['value'] }}" style="{{ $input }};width:8rem;margin-left:.4rem">
|
||||
@if ($parameter['options'])
|
||||
<select wire:model.live="drafts.{{ $this->intake }}.settings.{{ $parameter['key'] }}" style="{{ $input }};margin-left:.4rem">
|
||||
<option value="">wie geerbt</option>
|
||||
@foreach ($parameter['options'] as $value => $label)<option value="{{ $value }}">{{ $label }}</option>@endforeach
|
||||
</select>
|
||||
@else
|
||||
<input type="text" wire:model.live.debounce.600ms="drafts.{{ $this->intake }}.settings.{{ $parameter['key'] }}" placeholder="{{ $parameter['value'] }}" style="{{ $input }};width:8rem;margin-left:.4rem">
|
||||
@endif
|
||||
<span style="{{ $muted }}">wirksam: {{ $parameter['value'] }} ({{ $parameter['source'] }})</span>
|
||||
@if ($parameter['set'])
|
||||
<button type="button" wire:click="inherit('{{ $parameter['key'] }}')" style="{{ $muted }};text-decoration:underline">auf geerbten Wert zurücksetzen</button>
|
||||
@@ -153,14 +164,14 @@
|
||||
</div>
|
||||
|
||||
<x-filament::section heading="Vorschau: ein neuer Vorgang" description="Mit den aktuellen, auch ungespeicherten Einstellungen. Es wird nichts gespeichert und nichts ausgeführt.">
|
||||
<ol style="font-size:.85rem;list-style:decimal;padding-left:1.2rem">
|
||||
<ul style="font-size:.85rem;list-style:disc;padding-left:1.2rem">
|
||||
@foreach ($steps as $step)
|
||||
<li style="{{ $step['on'] ? '' : 'color:#9ca3af;text-decoration:line-through' }}">
|
||||
{{ $step['label'] }}
|
||||
<span style="{{ $muted }}">– {{ $step['on'] ? ($performers[$step['performer']] ?? $step['performer'] ?? '').($step['mode'] ? ', '.(\App\Enums\ProcessingMode::tryFrom($step['mode'])?->getLabel() ?? \App\Enums\DataRequestMode::tryFrom($step['mode'])?->getLabel() ?? $step['mode']) : '') : 'übersprungen: '.$step['reason'] }}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ol>
|
||||
</ul>
|
||||
<p style="{{ $muted }};margin-top:.6rem">Gilt für neue Vorgänge. Laufende Vorgänge dieses Kanals ({{ $this->runningCases() }}) behalten ihren bisherigen Ablauf.</p>
|
||||
<x-filament::button color="gray" wire:click="test" style="margin-top:.6rem">Ablauf testen</x-filament::button>
|
||||
<p style="{{ $muted }}">Spielt einen ausgedachten Vorgang mit genau dieser Einstellung durch – ohne Wirkung auf echte Daten.</p>
|
||||
|
||||
Reference in new issue
Block a user