|
@@ -219,59 +219,65 @@
|
|
|
<h6 class="my-0 text-secondary font-weight-bold text-dark lh-24px">CM Time Entries</h6>
|
|
|
<span class="mx-2 text-secondary">|</span>
|
|
|
@if(!$activeCMBill)
|
|
|
- <div moe>
|
|
|
+ <div moe large>
|
|
|
<a start show class="py-0 mb-3">Add</a>
|
|
|
<form url="/api/careMonthEntry/createForCm">
|
|
|
<input type="hidden" name="careMonthUid" value="{{ $careMonth->uid }}">
|
|
|
<div class="mb-2">
|
|
|
- <select class="form-control form-control-sm" name="proUid">
|
|
|
- <option value="">-- Select Pro --</option>
|
|
|
- @foreach($pros as $iPro)
|
|
|
- <option {{ $iPro->uid === $pro->uid ? 'selected' : '' }}
|
|
|
- value="{{ $iPro->uid }}">{{ $iPro->displayName() }}</option>
|
|
|
- @endforeach
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <?php
|
|
|
- $sD = strtotime($careMonth->start_date);
|
|
|
- $y = date('Y', $sD);
|
|
|
- $m = date('m', $sD);
|
|
|
- $d = date('t', $sD);
|
|
|
- $yCurrent = date('Y');
|
|
|
- $mCurrent = date('m');
|
|
|
- if($y === $yCurrent && $m === $mCurrent) {
|
|
|
- $d = date('d');
|
|
|
- }
|
|
|
- ?>
|
|
|
- <input autofocus type="date" min="{{ date($y . '-' . $m . '-01') }}" max="{{ date($y . '-' . $m . '-' . $d) }}" class="form-control form-control-sm" name="effectiveDate"
|
|
|
- value="" placeholder="Effective Date">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="number" min="0" max="5400" class="form-control form-control-sm cm-time-value" name="timeInSeconds"
|
|
|
- value="" placeholder="Time in Seconds">
|
|
|
- </div>
|
|
|
- <div class="mb-2 d-flex align-items-center">
|
|
|
- <span>Time Specific:</span>
|
|
|
- <input type="checkbox" name="isTimeSpecific" class="ml-1"
|
|
|
- onchange="enableTimeSpecificFields(this.checked, 'cm-time-value', 'cm-time-range')">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="time" class="form-control form-control-sm cm-time-range" name="startingTime"
|
|
|
- value="" placeholder="Starting Time" disabled>
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="time" class="form-control form-control-sm cm-time-range" name="endingTime"
|
|
|
- value="" placeholder="Ending Time" disabled>
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="contentText"
|
|
|
- value="" placeholder="Content Text">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-4 pr-0">
|
|
|
+ <select class="form-control form-control-sm w-100" name="proUid">
|
|
|
+ <option value="">-- Select Pro --</option>
|
|
|
+ @foreach($pros as $iPro)
|
|
|
+ <option {{ $iPro->uid === $pro->uid ? 'selected' : '' }}
|
|
|
+ value="{{ $iPro->uid }}">{{ $iPro->displayName() }}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="col-4 pr-0">
|
|
|
+ <?php
|
|
|
+ $sD = strtotime($careMonth->start_date);
|
|
|
+ $y = date('Y', $sD);
|
|
|
+ $m = date('m', $sD);
|
|
|
+ $d = date('t', $sD);
|
|
|
+ $yCurrent = date('Y');
|
|
|
+ $mCurrent = date('m');
|
|
|
+ if($y === $yCurrent && $m === $mCurrent) {
|
|
|
+ $d = date('d');
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ <input type="date" min="{{ date($y . '-' . $m . '-01') }}" max="{{ date($y . '-' . $m . '-' . $d) }}"
|
|
|
+ class="form-control form-control-sm w-100" name="effectiveDate"
|
|
|
+ value="{{ date('Y-m-d') }}" placeholder="Effective Date">
|
|
|
+ </div>
|
|
|
+ <div class="col-4">
|
|
|
+ <input autofocus type="number" min="0" max="5400" class="form-control form-control-sm w-100 cm-time-value" name="timeInSeconds"
|
|
|
+ value="" placeholder="Time in Seconds">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="contentDetail"
|
|
|
- value="" placeholder="Content Detail">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-4 pr-0 d-flex align-items-center">
|
|
|
+ <div class="d-flex align-items-center">
|
|
|
+ <span>Time Specific:</span>
|
|
|
+ <input type="checkbox" name="isTimeSpecific" class="ml-1"
|
|
|
+ onchange="enableTimeSpecificFields(this.checked, 'cm-time-value', 'cm-time-range')">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-4 pr-0">
|
|
|
+ <input type="time" class="form-control form-control-sm cm-time-range" name="startingTime"
|
|
|
+ value="" placeholder="Starting Time" disabled>
|
|
|
+ </div>
|
|
|
+ <div class="col-4">
|
|
|
+ <input type="time" class="form-control form-control-sm cm-time-range" name="endingTime"
|
|
|
+ value="" placeholder="Ending Time" disabled>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ <hr class="my-2">
|
|
|
+ @include('app/entry-templates/cm/default')
|
|
|
+ <hr class="my-2">
|
|
|
<div class="d-flex align-items-center">
|
|
|
<button class="btn btn-sm btn-primary mr-2" submit>Save</button>
|
|
|
<button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
|