ソースを参照

Dashboard memos > UI polish + stamp feature

Vijayakrishnan 3 年 前
コミット
e0540e9890

+ 1 - 1
resources/views/app/dashboard-mcp.blade.php

@@ -322,7 +322,7 @@
                                         Phone Calls & Memos
                                     </strong>
                                 </div>
-                                <div class="card-body">
+                                <div class="card-body p-0">
                                     @include('app.mcp.dashboard.calls_memos')
                                 </div>
                             </div>

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

@@ -1,26 +1,38 @@
-<h1>Phone Calls & Memos</h1>
-<div>
-	<table class="table table-sm">
-		<thead>
-			<tr>
-				<th>Client</th>
-				<th>Content</th>
-				<th>Created At</th>
-			</tr>
-		</thead>
-		<tbody>
-			@foreach($mcpClientMemos as $memo)
-			<tr>
-				<td>
-					<a href="{{route('patients.view.dashboard', $memo->client_uid)}}">
-						{{$memo->name_first}} {{$memo->name_last}}
-					</a>	
-				</td>
-				<td>{{$memo->content}}</td>
-				<td>{{$memo->created_at}}</td>
-			</tr>
-			@endforeach
-		</tbody>
-	</table>
-</div>
-
+@if(!$mcpClientMemos || !count($mcpClientMemos))
+<div class="px-2 py-3">No memos</div>
+@else
+<table class="table table-sm m-0">
+	<thead>
+		<tr>
+			<th class="w-25">Client</th>
+			<th class="w-50">Content</th>
+			<th class="w-25">Created At</th>
+		</tr>
+	</thead>
+	<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>
+				<div class="text-secondary text-sm text-nowrap">
+					{{friendlier_date_time($memo->created_at)}}
+				</div>
+			</td>
+			<td class="px-1">
+				<div class="on-hover-text-reveal width-200px">{{$memo->content}}</div>
+			</td>
+			<td class="px-1">
+				<div moe relative>
+					<form show url="/api/clientMemo/stamp">
+						<input type="hidden" name="uid" value="{{$memo->uid}}">
+						<button submit class="bg-transparent border-0 p-0 text-primary font-underline">Stamp</button>
+					</form>
+				</div>
+			</td>
+		</tr>
+		@endforeach
+	</tbody>
+</table>
+@endif