Browse Source

MCp dashboard ACK updates

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
2f45930c93

+ 37 - 37
resources/views/app/mcp/dashboard/calls_memos.blade.php

@@ -2,42 +2,42 @@
 @if(!$mcpClientMemos || !count($mcpClientMemos))
 <div class="px-2 py-3">No memos</div>
 @else
-<table class="table table-sm table-striped m-0">
-	<tbody>
-		@foreach($mcpClientMemos as $memo)
-		<tr>
-			<td class="px-1">
-				<a href="{{route('patients.view.dashboard', $memo->client_uid)}}">
-					{{$memo->name_first}} {{$memo->name_last}}
-				</a>
-				<a class="text-sm text-nowrap d-block"
-				   href="/memos-thread/{{$memo->client_uid}}"
-				   native target="_blank"
-				   open-in-stag-popup
-				   popup-style="tall"
-				   title="Memos for {{$memo->name_first}} {{$memo->name_last}}">
-					{{friendlier_date_time($memo->created_at)}}
-				</a>
-			</td>
-			<td class="px-1 w-75 text-left">
-				{{$memo->content}}
-			</td>
-			<td class="width-70px px-2 text-right">
-				<div moe relative class="ml-auto">
-					<form show url="/api/clientMemo/stamp" target="#mcp-phone-calls-memos">
-						<input type="hidden" name="uid" value="{{$memo->uid}}">
-						<button submit class="bg-transparent border-0 p-0 text-primary">Ack.</button>
-					</form>
-				</div>
-			</td>
-		</tr>
-		@endforeach
-	</tbody>
-</table>
-@if($mcpClientMemosCount > 10)
-	<div class="p-2 border-top bg-light text-center">
-		Showing 1 to 10 of {{$mcpClientMemosCount}} unstamped memos
-	</div>
-@endif
+	<table class="table table-sm table-striped m-0">
+		<tbody>
+			@foreach($mcpClientMemos as $memo)
+			<tr discardable-container>
+				<td class="px-1">
+					<a href="{{route('patients.view.dashboard', $memo->client_uid)}}">
+						{{$memo->name_first}} {{$memo->name_last}}
+					</a>
+					<a class="text-sm text-nowrap d-block"
+					   href="/memos-thread/{{$memo->client_uid}}"
+					   native target="_blank"
+					   open-in-stag-popup
+					   popup-style="tall"
+					   title="Memos for {{$memo->name_first}} {{$memo->name_last}}">
+						{{friendlier_date_time($memo->created_at)}}
+					</a>
+				</td>
+				<td class="px-1 w-75 text-left">
+					{{$memo->content}}
+				</td>
+				<td class="width-70px px-2 text-right">
+					<div class="ml-auto">
+						<form url="/api/clientMemo/stamp" target="#mcp-phone-calls-memos" discardable>
+							<input type="hidden" name="uid" value="{{$memo->uid}}">
+							<button submit class="bg-transparent border-0 p-0 text-primary">Ack.</button>
+						</form>
+					</div>
+				</td>
+			</tr>
+			@endforeach
+		</tbody>
+	</table>
+	@if($mcpClientMemosCount > 10)
+		<div class="p-2 border-top bg-light text-center">
+			Showing 1 to 10 of {{$mcpClientMemosCount}} unstamped memos
+		</div>
+	@endif
 @endif
 </div>

+ 4 - 18
resources/views/app/mcp/dashboard/messages.blade.php

@@ -4,7 +4,7 @@
     <table class="table table-sm m-0">
         <tbody>
         @foreach($incomingSmsMessagesPendingReply as $msg)
-            <tr>
+            <tr discardable-container>
                 <td class="px-1">
                     <a href="{{route('patients.view.sms', $msg->client_uid)}}">
                         {{$msg->client_name_first}} {{$msg->client_name_last}}
@@ -23,20 +23,11 @@
                 </td>
                 <td class="width-70px px-2 text-right">
                     @if($msg->is_reply_needed == 'YES')
-                        <div moe relative>
-                            <a start show class="">Ack.</a>
-                            <form url="/api/clientSms/updateIsReplyNeeded" class="mcp-theme-1" right>
+                        <div>
+                            <form url="/api/clientSms/updateIsReplyNeeded" class="mcp-theme-1" discardable>
                                 <input type="hidden" name="uid" value="{{ $msg->uid }}">
                                 <input type="hidden" name="isReplyNeeded" value="NO">
-                                <div class="mb-2">
-                                    <label for="" class="text-sm text-secondary mb-1">Are you sure?</label>
-
-                                </div>
-
-                                <div class="d-flex align-items-center">
-                                    <button class="btn btn-sm btn-primary mr-2" submit>Send</button>
-                                    <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
-                                </div>
+                                <button submit class="bg-transparent border-0 p-0 text-primary">Ack.</button>
                             </form>
                         </div>
                     @endif
@@ -45,9 +36,4 @@
         @endforeach
         </tbody>
     </table>
-    @if(count($incomingSmsMessagesPendingReply) > 10)
-        <div class="p-2 border-top bg-light text-center">
-            Showing 1 to 10 of {{count($incomingSmsMessagesPendingReply)}} unstamped memos
-        </div>
-    @endif
 @endif

+ 8 - 6
resources/views/app/mcp/dashboard/notifications.blade.php

@@ -1,3 +1,4 @@
+<div id="mcp-dashboard-notifications">
 <?php
     
     $apptsPending = [
@@ -13,7 +14,7 @@
 @if(count($apptsPending['status']))
     <b class="text-secondary my-2 d-block">Appointment Status Changes</b>
     @foreach($apptsPending['status'] as $appt)
-        <div class="d-flex mb-1 border-bottom border-light">
+        <div class="d-flex mb-1 border-bottom border-light" discardable-container>
             <div class="flex-grow-1 d-inline-flex align-items-baseline">
                 <div>
                     <a class="d-block" href="/patients/view/{{$appt->client->uid}}"><b>{{$appt->client->displayName()}}</b></a>
@@ -26,8 +27,8 @@
                     @endif
                 </div>
             </div>
-            <div moe relative class="">
-                <form show url="/api/appointment/acknowledgeStatusAsAppointmentPro">
+            <div class="">
+                <form url="/api/appointment/acknowledgeStatusAsAppointmentPro" discardable>
                     <input type="hidden" name="uid" value="{{$appt->uid}}">
                     <input type="hidden" name="currentStatus" value="{{$appt->status}}">
                     @if($appt->status_memo !== null)
@@ -46,7 +47,7 @@
 @if(count($apptsPending['decision']))
     <b class="text-secondary my-2 d-block">Appointment Confirmation Changes</b>
     @foreach($apptsPending['decision'] as $appt)
-        <div class="d-flex mb-1 border-bottom border-light">
+        <div class="d-flex mb-1 border-bottom border-light" discardable-container>
             <div class="flex-grow-1 d-inline-flex align-items-baseline">
                 <div>
                     <a class="d-block" href="/patients/view/{{$appt->client->uid}}"><b>{{$appt->client->displayName()}}</b></a>
@@ -54,8 +55,8 @@
                 </div>
                 <span class="ml-auto mr-3 font-weight-bold text-secondary">{{$appt->latestConfirmationDecision->decision_enum}}</span>
             </div>
-            <div moe relative class="">
-                <form show url="/api/appointment/acknowledgeDecisionAsAppointmentPro">
+            <div class="">
+                <form url="/api/appointment/acknowledgeDecisionAsAppointmentPro" discardable>
                     <input type="hidden" name="uid" value="{{$appt->uid}}">
                     <button submit class="bg-transparent border-0 p-0 text-primary">Ack.</button>
                 </form>
@@ -75,3 +76,4 @@
         </div>
     @endforeach
 @endif--}}
+</div>