ソースを参照

Client header - rpm comm. UI update

Vijayakrishnan 3 年 前
コミット
bba7f5b34b
1 ファイル変更8 行追加16 行削除
  1. 8 16
      resources/views/layouts/patient.blade.php

+ 8 - 16
resources/views/layouts/patient.blade.php

@@ -712,10 +712,15 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
 
 											<div class="separators">
 												<?php $currentCareMonth = $patient->currentCareMonth(); ?>
-												@if($currentCareMonth && $pro->id === $currentCareMonth->mcp_pro_id)
-													<div class="">
+												@if($currentCareMonth && ($pro->pro_type === 'ADMIN' || $pro->id === $currentCareMonth->mcp_pro_id))
+													<div class="text-primary c-pointer"
+														 open-in-stag-popup
+														 mc-initer="care-month-dashboard-{{$patient->uid}}"
+														 title="Care Month: {{friendly_month($currentCareMonth->start_date)}}"
+														 popup-style="overflow-visible"
+														 href="/patients/view/{{ $patient->uid }}/care-months/view/{{$currentCareMonth->uid}}">
 														<?php $spoken = $currentCareMonth->has_anyone_interacted_with_client_about_rm_outside_note; ?>
-														<span class="">Communicated this month:</span>
+														<span class="">RPM comm. this month:</span>
 														<b class="{{$spoken ? 'text-success' : ''}}">
 															{{$spoken ? 'Yes' : 'No'}}
 															@if(!$spoken)
@@ -724,19 +729,6 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
 																<i class="fa fa-check"></i>
 															@endif
 														</b>
-														@if($currentCareMonth->mcp && $pro->id === $currentCareMonth->mcp->id)
-															<div moe relative class="ml-1">
-																<a href="#" start show class="text-sm"><i class="fa fa-edit"></i></a>
-																<form url="/api/careMonth/setHasAnyoneInteractedWithClientAboutRmOutsideNoteTo{{$spoken ? 'False' : 'True'}}" right>
-																	<input type="hidden" name="uid" value="{{$currentCareMonth->uid}}">
-																	<p>Set to {{$spoken ? 'No' : 'Yes'}}?</p>
-																	<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>
-																	</div>
-																</form>
-															</div>
-														@endif
 													</div>
 												@endif
 												@if($patient->mcp && $patient->mcp->id === $pro->id || $pro->pro_type == 'ADMIN')