ソースを参照

Feature: update section with latest canvas data

Vijayakrishnan 4 年 前
コミット
f65a627e49
1 ファイル変更17 行追加0 行削除
  1. 17 0
      resources/views/app/patient/note/section.blade.php

+ 17 - 0
resources/views/app/patient/note/section.blade.php

@@ -40,6 +40,23 @@ if ($latestSectionTS === 0 || $latestSectionTS < $sectionTS) {
         @include('sections/' . $sectionInternalName . '/actions')
         <?php endif; ?>
 
+        {{-- refresh from client data --}}
+        <?php if ($section->sectionTemplate->is_canvas): ?>
+            <div moe class="d-none if-edit ml-2">
+                <a start show class="font-weight-normal" title="Update with latest patient data">
+                    <i class="fa fa-sync"></i>
+                </a>
+                <form url="/api/section/updateFromCanvas">
+                    <p>Update this section with latest patient data?</p>
+                    <input type="hidden" name="uid" value="{{ $section->uid }}">
+                    <div class="d-flex align-items-center">
+                        <button class="btn btn-sm btn-primary mr-2" type="button" submit>Update</button>
+                        <button class="btn btn-sm btn-default mr-2 border" type="button" cancel>Cancel</button>
+                    </div>
+                </form>
+            </div>
+        <?php endif; ?>
+
         @if(isset($pro))
             <div class="ml-auto d-inline-flex align-items-center">
                 <div class="ml-auto">