瀏覽代碼

Merge branch 'dev' of rav.triplestart.com:jmudaka/stagfe2 into dev-josh

Josh 4 年之前
父節點
當前提交
74537fbc69

+ 2 - 1
app/Http/Controllers/AppointmentController.php

@@ -37,7 +37,7 @@ class AppointmentController extends Controller
         $events = [];
         foreach ($appointments as $appointment) {
             $events[] = [
-                "title" => '(' . $appointment->pro->initials() . ') ' . $appointment->client->displayName(),
+                "title" => ($appointment->client->id != $clientId ? '* ' : '') . $appointment->pro->displayName(),
                 "_title" => $appointment->title,
                 "description" => $appointment->description,
                 "clientName" => $appointment->client->displayName(),
@@ -48,6 +48,7 @@ class AppointmentController extends Controller
                 "start" => $this->convertToTimezone($appointment->start_time, $timeZone),
                 "end" => $this->convertToTimezone($appointment->end_time, $timeZone),
                 "clientOnly" => !in_array($appointment->pro->id, $proIds),
+                "otherClient" => ($appointment->client->id != $clientId),
                 "editable" => true
             ];
         }

+ 4 - 5
public/css/style.css

@@ -938,11 +938,10 @@ span.select2-container.select2-container--default.select2-container--open {
 .stag-popup .stag-popup-title>span {
     font-size: 17px;
 }
-.fc .client-only {
+.fc .other-client {
     box-shadow: 1px 1px 2px deeppink !important;
-    opacity: 0.7;
+    opacity: 0.5;
 }
-.fc .client-only:hover {
-    box-shadow: 1px 1px 2px deeppink !important;
-    opacity: 1;
+.fc .other-client:hover {
+    opacity: 0.8;
 }

+ 6 - 2
resources/views/app/patient/appointment-calendar.blade.php

@@ -478,10 +478,14 @@
                                     }, 'json');
                                 },
                                 eventClassNames: function(arg) {
+                                    let classes = [];
                                     if (arg.event.extendedProps.clientOnly) {
-                                        return [ 'client-only' ];
+                                        classes.push('client-only');
                                     }
-                                    return [];
+                                    if (arg.event.extendedProps.otherClient) {
+                                        classes.push('other-client');
+                                    }
+                                    return classes;
                                 },
                                 loading: function(bool) {
 

+ 1 - 14
resources/views/app/patient/note/note-section-list.blade.php

@@ -56,20 +56,7 @@ if ($latestSectionTS === 0 || $latestSectionTS < $sectionTS) {
 
     </div>
     <div class="d-none if-not-edit  inset-comment summary-container">
-        @if($section->sectionTemplate->is_canvas)
-            <?php 
-             $contentData = false;
-             if ($patient->canvas_data) {
-                 $canvasData = json_decode($patient->canvas_data, true);
-                 if (isset($canvasData[$sectionInternalName])) {
-                     $contentData = $canvasData[$sectionInternalName];
-                 }
-             }
-             ?>  
-             @include('app.patient.canvas-sections.pmhx.summary')                                                                     
-        @else
-            {!! !empty($section->summary_html) ? $section->summary_html : '-' !!}
-        @endif
+        {!! !empty($section->summary_html) ? $section->summary_html : '-' !!}
     </div>
 
     <div class="d-none if-edit">