Lock nursing note shift from duty roster or clock.
Deploy Ladill Care / deploy (push) Successful in 46s

Nurses can no longer pick a shift on the form; the server sets it from today's unit roster, falling back to the current clock window.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-20 18:36:52 +00:00
co-authored by Cursor
parent e539438071
commit 9443465c5c
4 changed files with 106 additions and 11 deletions
+7 -6
View File
@@ -38,12 +38,13 @@
<div class="grid gap-4 sm:grid-cols-3">
<div>
<label class="block text-sm font-medium">Shift</label>
<select name="shift_code" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
<option value=""></option>
@foreach ($shiftCodes as $value => $label)
<option value="{{ $value }}">{{ $label }}</option>
@endforeach
</select>
@php
$shiftCode = $lockedShiftCode ?? null;
$shiftLabel = $shiftCode
? ($shiftCodes[$shiftCode] ?? $shiftCode)
: '—';
@endphp
<input type="text" value="{{ $shiftLabel }}" disabled class="mt-1 w-full rounded-lg border-slate-200 bg-slate-50 text-sm text-slate-700">
</div>
<div class="sm:col-span-2">
<label class="block text-sm font-medium">Note</label>