Răsfoiți Sursa

fixed free text notes

Josh Kamau 5 ani în urmă
părinte
comite
e655babd01

+ 6 - 16
resources/views/app/patient/notes.blade.php

@@ -96,23 +96,13 @@ Notes
     </div>
     <div class="card-body">
         <div>
-            @foreach ($sectionTemplates as $sectionTemplate)
-            <a href="{{route('section_create_form', [$note->uid, $sectionTemplate->uid])}}" show start>add
-                '{{$sectionTemplate->title}}' section</a>
-            @endforeach
-            @if($note->sections->count())
-                @foreach ($note->sections as $section)
-                <div class="mt-2">
-                    <div>
-                        {!! $section->summary_html !!}
-                        <a href="{{route('section_update_form', $section->uid)}}">update section</a>
-                    </div>
+
+            <div class="mt-2">
+                <div>
+                    {!! $note->free_text_html !!}
                 </div>
-                @if(!$loop->last)
-                <hr>
-                @endif
-                @endforeach
-            @endif
+            </div>
+
             @if($note->bills->count())
             <div class="mt-2">
                 <table class="table table-sm tabe-striped">

+ 5 - 2
resources/views/layouts/patient.blade.php

@@ -162,7 +162,7 @@
                                             <!-- <i class="fa fa-plus-circle"></i> -->
                                             <button>+ Note</button>
                                         </a>
-                                        <form url="/api/note/create" right>
+                                        <form url="/api/note/createUsingFreeTextHtml" right>
                                             <input type="hidden" name="clientUid" value="{{$patient->uid}}">
                                             <div>
                                                 <label for="" class="control-label">HCP Pro</label>
@@ -197,7 +197,10 @@
                                                 <label for="" class="control-label text-left">Effective time</label>
                                                 <input type="time" name="effectiveTime">
                                             </div>
-
+                                            <div>
+                                                <label for="" class="control-label text-left">Content</label>
+                                                <textarea name="freeTextHtml" id="" cols="30" rows="10"></textarea>
+                                            </div>
                                             <div>
                                                 <button submit>Submit</button>
                                                 <button cancel>Cancel</button>