|
@@ -66,7 +66,7 @@ $formID = rand(0, 100000);
|
|
|
<span>All</span>
|
|
|
</label>
|
|
|
</th>
|
|
|
- <th class="px-2 text-secondary border-bottom-0 w-50">
|
|
|
+ <th class="px-2 text-secondary border-bottom-0 w-35">
|
|
|
<div class="d-flex align-items-center font-weight-normal">
|
|
|
<span>Title</span>
|
|
|
<div class="hide-if-dashboard ml-auto">
|
|
@@ -98,7 +98,7 @@ $formID = rand(0, 100000);
|
|
|
</th>
|
|
|
{{--<th class="px-2 text-secondary border-bottom-0 min-width-140px">ICD</th>
|
|
|
<th class="px-2 text-secondary border-bottom-0 w-25">Detail</th>--}}
|
|
|
- <th class="px-2 text-secondary border-bottom-0 w-50">Plan</th>
|
|
|
+ <th class="px-2 text-secondary border-bottom-0 w-75">Plan</th>
|
|
|
<th class="px-2 text-secondary border-bottom-0"></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
@@ -174,6 +174,11 @@ $formID = rand(0, 100000);
|
|
|
>+ New Entry</button>
|
|
|
</div>
|
|
|
|
|
|
+ <div class="assessment-detail-template">
|
|
|
+ <?php $sectionInternalName = 'plan'; ?>
|
|
|
+ @include('app/patient/note/_templates-index')
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
<script>
|
|
|
(function() {
|
|
@@ -287,8 +292,6 @@ $formID = rand(0, 100000);
|
|
|
|
|
|
let vueField = $(this).attr('data-field'), vueIndex = +$(this).attr('data-index');
|
|
|
|
|
|
- $(this).remove();
|
|
|
-
|
|
|
var qe = new Quill('[data-editor-id="' + editorID + '"]', {
|
|
|
theme: 'snow',
|
|
|
modules: stagQuillConfig
|
|
@@ -302,6 +305,14 @@ $formID = rand(0, 100000);
|
|
|
'text-sm add-shortcut" data-editor-id="' + editorID + '">+ Shortcut</button>');
|
|
|
toolbar.append(newSCButton);
|
|
|
|
|
|
+ // add button for templates
|
|
|
+ var templatesButton = $('<button type="button" tabindex="-1" ' +
|
|
|
+ 'class="position-relative note-templates-trigger-assessment btn bg-white btn-sm btn-default text-primary w-auto px-2 border py-0 ml-1 ' +
|
|
|
+ 'text-sm show-templates">Templates</button>');
|
|
|
+ templatesButton.attr('data-editor-id', editorID);
|
|
|
+ toolbar.append(templatesButton);
|
|
|
+ // $(this).closest('tr').find('.assessment-detail-template').appendTo(templatesButton);
|
|
|
+
|
|
|
qe.on('text-change', function() {
|
|
|
// ti.val(qe.root.innerHTML);
|
|
|
self.items[vueIndex][vueField] = qe.root.innerHTML;
|
|
@@ -312,6 +323,8 @@ $formID = rand(0, 100000);
|
|
|
.attr('data-editor-id', editorID)
|
|
|
.attr('with-shortcuts', 1);
|
|
|
|
|
|
+ $(this).remove();
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
initICDAutoSuggest: function() {
|