|
@@ -198,14 +198,14 @@ foreach ($days as $k => $day) {
|
|
|
<div class="mb-2">
|
|
|
<label class="mb-1 text-secondary text-sm">Minutes</label>
|
|
|
<input type="number" min="1" max="15"
|
|
|
- class="form-control form-control-sm w-100" name="entryMinutes"
|
|
|
+ class="form-control form-control-sm w-100" name="entryNumberOfMinutes"
|
|
|
value="2" placeholder="Time (mins.)">
|
|
|
</div>
|
|
|
<div class="mb-2">
|
|
|
<label class="mb-1 text-secondary text-sm">Date</label>
|
|
|
<input type="date" class="form-control form-control-sm w-100"
|
|
|
name="entryDate"
|
|
|
- value="{{Date('Y-m-d')}}">
|
|
|
+ value="{{date('Y-m-d', strtotime($k))}}">
|
|
|
</div>
|
|
|
<div class="">
|
|
|
<label class="mb-0 d-flex align-items-baseline">
|
|
@@ -369,7 +369,7 @@ foreach ($days as $k => $day) {
|
|
|
shouldAddEntry: form.find('.shouldAddEntry').prop('checked') ? 1 : 0,
|
|
|
entryDate: form.find('[name="entryDate"]').val(),
|
|
|
entryMemo: form.find('[name="entryMemo"]').val(),
|
|
|
- entryNumberOfMinutes: form.find('[name="entryNumberOfMinutes"]').val(),
|
|
|
+ entryNumberOfMinutes: form.find('[name="entryNumberOfMinutes"]').val() ? +(form.find('[name="entryNumberOfMinutes"]').val()) : 0,
|
|
|
hasAnyoneInteractedWithClientAboutRmOutsideNote: form.find('.hasAnyoneInteractedWithClientAboutRmOutsideNote').prop('checked') ? 1 : 0,
|
|
|
}
|
|
|
|