Jelajahi Sumber

[e2-133] Client DB memos UI update

Vijayakrishnan 3 tahun lalu
induk
melakukan
770e21337d
2 mengubah file dengan 27 tambahan dan 28 penghapusan
  1. 2 1
      public/css/style.css
  2. 25 27
      resources/views/app/patient/dashboard.blade.php

+ 2 - 1
public/css/style.css

@@ -267,7 +267,8 @@ body>nav.navbar {
 [moe][huge] form, [moe][huge] [url] {
     width: 750px;
 }
-[moe][bottom] form {
+[moe][bottom] form,
+[moe][bottom] div[url]{
     bottom: 100%;
 }
 .moe-disabled[moe] {

+ 25 - 27
resources/views/app/patient/dashboard.blade.php

@@ -560,33 +560,6 @@
                                         <td class="px-2 text-nowrap">{{ $memo->category }}</td>
                                         <td class="px-2">
                                             <pre class="m-0 break-spaces">{{ $memo->content }}</pre>
-                                            @if($performer->pro->pro_type == 'ADMIN')
-                                            <div class="d-flex justify-content-end align-items-center">
-                                                <div moe>
-                                                    <a start show><i class="fas fa-archive"></i> Show Changelog</a>
-                                                    <div action="" url>
-                                                        <table class="table table-condensed table-striped table-sm">
-                                                            <thead>
-                                                            <th>Category</th>
-                                                            <th>Summary</th>
-                                                            <th>Created</th>
-                                                            
-                                                            </thead>
-                                                            <tbody>
-                                                            @foreach($memo->updates as $update)
-                                                                <tr>
-                                                                    <td>{{$update->category}}</td>
-                                                                    <td>{{$update->content}}</td>
-                                                                    <td><strong>{{$update->createdBy->proname_first}} {{$update->createdBy->pro->name_last}}</strong><br/>{{ friendly_date_time($update->created_at) }}</td>
-                                                                
-                                                                </tr>
-                                                            @endforeach
-                                                            </tbody>
-                                                        </table>
-                                                    </div>
-                                                </div>
-                                            </div>
-                                            @endif
                                         </td>
                                         <td class="px-2 text-nowrap">
                                             @if($performer->pro->pro_type == 'ADMIN')
@@ -611,6 +584,31 @@
                                             @endif
                                         </td>
                                         <td class="px-2 text-center delete-column">
+                                            @if($performer->pro->pro_type == 'ADMIN')
+                                                <div moe relative bottom class="mr-2">
+                                                    <a start show><i class="fa fa-history"></i></a>
+                                                    <div action="" url right bottom>
+                                                        <table class="table table-condensed table-striped table-sm">
+                                                            <thead>
+                                                            <th>Category</th>
+                                                            <th>Summary</th>
+                                                            <th>Created</th>
+
+                                                            </thead>
+                                                            <tbody>
+                                                            @foreach($memo->updates as $update)
+                                                                <tr>
+                                                                    <td>{{$update->category}}</td>
+                                                                    <td>{{$update->content}}</td>
+                                                                    <td><strong>{{$update->createdBy->proname_first}} {{$update->createdBy->pro->name_last}}</strong><br/>{{ friendly_date_time($update->created_at) }}</td>
+
+                                                                </tr>
+                                                            @endforeach
+                                                            </tbody>
+                                                        </table>
+                                                    </div>
+                                                </div>
+                                            @endif
                                             <div moe wide relative class="mr-2">
                                                 <a class="on-hover-opaque" start show title="Edit">
                                                     <i class="font-size-11 fa fa-edit"></i>