Lock nursing note shift from duty roster or clock.
Deploy Ladill Care / deploy (push) Successful in 46s
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user