浏览代码

Add "description" field in add/edit appt.

Vijayakrishnan 4 年之前
父节点
当前提交
6078bdd00a

+ 7 - 0
resources/views/app/patient/manage-appointment.blade.php

@@ -72,6 +72,13 @@
                        value="{{ $appointment && $appointment->title ? $appointment->title : '' }}"
                        placeholder="(optional)">
             </div>
+            <div class="mb-3">
+                <label class="text-secondary mb-1">Description</label>
+                <textarea name="description" class="form-control form-control-sm"
+                          type="text"
+                          placeholder="(optional)"
+                >{{ $appointment && $appointment->description ? $appointment->description : '' }}</textarea>
+            </div>
             <div class="mb-3">
                 <button class="btn btn-sm btn-primary d-block w-100 font-weight-bold apply-appt-button" disabled>
                     @if($appointment && $appointment->uid)

+ 1 - 0
resources/views/app/patient/partials/appointments.blade.php

@@ -39,6 +39,7 @@
                         &nbsp;/&nbsp;--}}
                         <b class="mr-1">{{$appointment->pro->displayName()}}</b>
                         <span class="text-secondary text-sm">({{ $appointment->status }})</span>
+                        <span class="text-secondary text-sm ml-2">{{ $appointment->description ? $appointment->description : '' }}</span>
                     </div>
                 </td>
             </tr>