Procházet zdrojové kódy

Integrate calendar based add/edit appt.

Vijayakrishnan před 4 roky
rodič
revize
ac5134b4c2

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

@@ -11,10 +11,10 @@
     <hr class="mt-2 mb-3">
     <div class="d-flex align-items-start appt-form">
         <form action="/api/appointment/{{ $appointment && $appointment->uid ? 'update' : 'create' }}" method="post" class="appt-form-col pr-2">
-            @if(!$appointment)
-                <input name="clientUid" type="hidden" value="{{ $patient->uid }}">
-            @else
+            @if($appointment && $appointment->uid)
                 <input name="uid" type="hidden" value="{{ $appointment->uid }}">
+            @else
+                <input name="clientUid" type="hidden" value="{{ $patient->uid }}">
             @endif
             <div class="mb-3">
                 <label class="text-secondary mb-1">Patient</label>

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

@@ -1,13 +1,13 @@
 <div class="mt-2 pb-1">
     <div class="d-flex align-items-center mb-2 py-2 border-top border-bottom">
         <h6 class="my-0 font-weight-bold text-secondary">Appointments</h6>
-        <span class="mx-2 text-secondary">|</span>
+        {{--<span class="mx-2 text-secondary">|</span>
         <div moe center>
             <a start show>Add</a>
             @include('app/patient/partials/_appointment-form', ['appointment' => false])
-        </div>
+        </div>--}}
         <span class="mx-2 text-secondary">|</span>
-        <a href="/patients/view/{{$patient->uid}}/manage-appointment" class="font-weight-bold">Add **</a>
+        <a href="/patients/view/{{$patient->uid}}/manage-appointment">Add</a>
     </div>
     <table class="table table-sm border-0 my-0 mx-2">
         <tbody>
@@ -15,16 +15,16 @@
             <tr>
                 <td class="text-black p-0 border-0">
                     <div class="pb-0">
-                        <div relative moe center>
+                        {{--<div relative moe center>
                             <a class="on-hover-opaque" start show title="Update">
                                 <i class="font-size-11 fa fa-edit text-primary"></i>
                             </a>
                             @include('app/patient/partials/_appointment-form', ['appointment' => $appointment])
-                        </div>
-                        <a class="on-hover-opaque font-weight-bold"
+                        </div>--}}
+                        <a class="on-hover-opaque"
                            href="/patients/view/{{$patient->uid}}/manage-appointment/{{$appointment->uid}}"
-                           title="Update **">
-                            <i class="font-size-11 fa fa-edit text-primary"></i> **
+                           title="Update">
+                            <i class="font-size-11 fa fa-edit text-primary"></i>
                         </a>
 
                         {{ $appointment->raw_date }}