فهرست منبع

Notes - clone visit - moe updates

Vijayakrishnan 3 سال پیش
والد
کامیت
75d372e7eb
1فایلهای تغییر یافته به همراه25 افزوده شده و 31 حذف شده
  1. 25 31
      resources/views/app/patient/notes.blade.php

+ 25 - 31
resources/views/app/patient/notes.blade.php

@@ -151,7 +151,7 @@
         <thead class="bg-light">
         <tr>
             <th class="border-0 text-secondary">Effective Date</th>
-            <th class="border-0 text-secondary">New Patient / FU</th>
+            <th class="border-0 text-secondary">New / Follow-up</th>
             @if($pro->pro_type == 'ADMIN')
                 <th class="border-0 text-secondary">Method</th>
             @endif
@@ -192,7 +192,7 @@
                     <span class="ml-1">{{ $note->is_cancelled ? '[cancelled]' : '' }}</span>
                 </td>
                 <td>
-                    {{ $note->new_or_fu_or_na === 'NEW' ? 'New Patient' : $note->new_or_fu_or_na }}
+                    {{ $note->new_or_fu_or_na === 'NEW' ? 'New' : 'Follow-up' }}
                 </td>
                 @if($pro->pro_type == 'ADMIN')
                     <td>
@@ -229,37 +229,35 @@
                     <div class="d-flex align-items-center">
                         <a href="/patients/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">Open</a>
                         @if($note->new_or_fu_or_na !== 'NEW')
+                            <span class="px-2 text-secondary">|</span>
                             @if(!$note->visit_template_id)
-                                <span class="px-2 text-secondary">|</span>
-                                <div class="d-flex align-items-center">
-                                    <a href="/patients/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">Open</a>
-                                    @if($note->new_or_fu_or_na !== 'NEW')
-                                    <span class="px-2 text-secondary">|</span>
-                                    <a href="#" class="text-primary trigger-clone" data-uid="{{$note->uid}}">Clone</a>
-                                    @endif
-                                </div>
+                                <a href="#" class="text-primary trigger-clone" data-uid="{{$note->uid}}">Clone</a>
                             @else
-                                <span class="px-2 text-secondary">|</span>
-                                <div moe>
+                                <div moe relative>
                                     <a start show>Clone Visit</a>
-                                    <form url="/api/visit/clone" class="mcp-theme-1">
+                                    <form url="/api/visit/clone" class="mcp-theme-1" right
+                                          redir="/patients/view/{{$patient->uid}}/notes/view/[data]">
                                         <input type="hidden" name="visitToCloneUid" value="{{$note->uid}}">
-                                        <div class="form-group">
-                                            <label for="" class="control-label">Effective Date</label>
-                                            <input type="date" name="effectiveDate" class="form-control input-sm">
+                                        <div class="mb-2">
+                                            <label for="" class="text-sm text-secondary mb-1">Effective Date</label>
+                                            <input type="date" name="effectiveDate" class="form-control input-sm" value="{{date('Y-m-d')}}">
                                         </div>
-                                        <div class="form-group">
-                                            <label for="" class="control-label">New/Fu</label>
-                                            <select name="newOrFuOrNa" id="" class="form-control input-sm">
-                                                <option value="">--select--</option>
-                                                <option value="NEW">New</option>
-                                                <option value="FU">Fu</option>
-                                                <option value="NA">Na</option>
-                                            </select>
+                                        <div class="mb-2">
+                                            <label for="" class="text-secondary text-sm mb-1">New/Follow-up</label>
+                                            <div class="d-flex align-items-baseline py-1">
+                                                <label class="mr-3 my-0 d-inline-flex align-items-center c-pointer">
+                                                    <input type="radio" name="newOrFuOrNa" value="NEW" required>
+                                                    <span class="ml-1 text-dark">New</span>
+                                                </label>
+                                                <label class="my-0 d-inline-flex align-items-center c-pointer">
+                                                    <input type="radio" name="newOrFuOrNa" value="FU" required checked>
+                                                    <span class="ml-1 text-dark">Follow-Up</span>
+                                                </label>
+                                            </div>
                                         </div>
 
-                                        <div class="form-group">
-                                            <label for="" class="control-label">Method</label>
+                                        <div class="mb-2">
+                                            <label for="" class="text-sm text-secondary mb-1">Method</label>
                                             <select name="noteContactMethod" id="" class="form-control input-sm">
                                                 <option value="">--select--</option>
                                                 <option value="VIDEO">Video</option>
@@ -268,11 +266,7 @@
                                                 <option value="HOUSE_CALL">House Call</option>
                                             </select>
                                         </div>
-                                        <div class="form-group">
-                                            <label for="" class="control-label">Title</label>
-                                            <input type="text" name="title" class="form-control input-sm">
-                                        </div>
-                                        <div class="form-group m-0">
+                                        <div class="m-0">
                                             <button submit class="btn btn-primary btn-sm">submit</button>
                                         </div>
                                     </form>