Pārlūkot izejas kodu

Polish UI of patient header

Vijayakrishnan Krishnan 4 gadi atpakaļ
vecāks
revīzija
1c8a6df9a4
2 mainītis faili ar 9 papildinājumiem un 49 dzēšanām
  1. 1 0
      public/js/mc.js
  2. 8 49
      resources/views/layouts/patient.blade.php

+ 1 - 0
public/js/mc.js

@@ -167,6 +167,7 @@ function onFastLoaded(_data, _href, _history) {
         targetParent.html('<p class="text-danger p-3 small">Target page not found or returned error: <b>' + _href + '</b></p>');
     }
     hideMask();
+    hideMoeFormMask();
 }
 function fastLoad(_href, _history = true, _useCache = true, _replaceState = false) {
 

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

@@ -331,67 +331,26 @@
                                 </section>
                                 <section class=vbox>
                                     <div moe>
-                                        <a href="" start> + note </a>
-                                        <form url="/api/note/createUsingTemplate" redir="/patients/view/{{$patient->uid}}/notes/view/[data]">
+                                        <button start show>+ Note</button>
+                                        <form url="/api/note/createUsingTemplate"
+                                              redir="/patients/view/{{$patient->uid}}/notes/view/[data]"
+                                              class="mcp-theme-1">
                                             <input type="hidden" name="clientUid" value="{{$patient->uid}}">
                                             <input type="hidden" name="hcpProUid" value="{{$pro->uid}}">
-                                            <div class="form-group">
-                                                <label for="" class="control-label">Note Template</label>
-                                                <select name="noteTemplateUid" class="form-control">
+                                            <div class="form-group mb-2">
+                                                <label for="" class="text-secondary text-sm mb-1">Note Template</label>
+                                                <select name="noteTemplateUid" class="form-control form-control-sm">
                                                     <option value=""> --select-- </option>
                                                     @foreach($noteTemplates as $noteTemplate)
                                                     <option value="{{$noteTemplate->uid}}">{{$noteTemplate->title}}</option>
                                                     @endforeach
                                                 </select>
                                             </div>
-                                            <div class="form-group">
+                                            <div class="form-group m-0">
                                                 <button submit class="btn btn-primary btn-sm">submit</button>
                                             </div>
                                         </form>
                                     </div>
-                                    <button class="create-auto-note-trigger"
-                                            data-patient-uid="{{ $patient->uid  }}"
-                                            data-hcp-uid="{{ $pro->uid }}"
-                                            data-effective-date="{{ date('Y-m-d') }}">+ Note</button>
-                                    <?php /* <div moe relative
-                                         >
-                                        <a start show>
-                                            <!-- <i class="fa fa-plus-circle"></i> -->
-                                            <button id="btn-create-note" >+ Note</button>
-                                        </a>
-                                        <form url="/api/note/createUsingFreeTextHtml" right class="mcp-theme-1">
-                                            <input type="hidden" name="clientUid" value="{{$patient->uid}}">
-                                            <input type="hidden" name="hcpProUid" value="{{$pro->uid}}">
-                                            {{--<div class="mb-2">
-                                                <select name="allyProUid" class="form-control form-control-sm">
-                                                    <option value="">-- Select Ally Pro --</option>
-                                                    @foreach ($pros as $iPro)
-                                                        <option
-                                                            value="{{$iPro->uid}}">{{$iPro->name_display}}</option>
-                                                    @endforeach
-                                                </select>
-                                            </div>--}}
-                                            {{--<div class="mb-2">
-                                                <input type="text" name="title" placeholder="Title" class="form-control form-control-sm">
-                                            </div>--}}
-                                            <div class="mb-2">
-                                                <label class="text-secondary text-sm mb-2">Effective Date</label>
-                                                <input type="date" name="effectiveDateEST" placeholder="Effective Date" class="form-control form-control-sm"
-                                                       value="{{ date('Y-m-d') }}" required>
-                                            </div>
-                                            {{--<div class="mb-2">
-                                                <label class="text-secondary text-sm">Effective Time</label>
-                                                <input type="time" name="effectiveTime" placeholder="Effective Time" class="form-control form-control-sm">
-                                            </div>
-                                            <div class="mb-2">
-                                                <textarea name="freeTextHtml" id="" cols="30" rows="5" placeholder="Content" class="form-control form-control-sm"></textarea>
-                                            </div>--}}
-                                            <div>
-                                                <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
-                                                <button cancel class="btn btn-sm btn-default border">Cancel</button>
-                                            </div>
-                                        </form>
-                                    </div> */ ?>
                                     <div>
                                         <button onclick="return openInRHS('/pro/meet/{{ $patient->uid }}')">Video</button>
                                         <span moe relative class="ml-1">