|
@@ -115,7 +115,7 @@ $formID = rand(0, 100000);
|
|
v-on:change="includeChanged()">
|
|
v-on:change="includeChanged()">
|
|
</label>
|
|
</label>
|
|
</td>
|
|
</td>
|
|
- <td v-show="inclusion[index]" >
|
|
|
|
|
|
+ <td @if(@$note) v-show="inclusion[index]" @endif>
|
|
<input type="text" :data-index="index"
|
|
<input type="text" :data-index="index"
|
|
class="form-control form-control-sm font-weight-bold font-size-14"
|
|
class="form-control form-control-sm font-weight-bold font-size-14"
|
|
data-field="title" placeholder="Title" v-model="item.title" autofocus required>
|
|
data-field="title" placeholder="Title" v-model="item.title" autofocus required>
|
|
@@ -135,7 +135,7 @@ $formID = rand(0, 100000);
|
|
</div>
|
|
</div>
|
|
<textarea type="text" class="form-control form-control-sm" v-model="item.detail" placeholder="Updated HPI *"></textarea>
|
|
<textarea type="text" class="form-control form-control-sm" v-model="item.detail" placeholder="Updated HPI *"></textarea>
|
|
</td>
|
|
</td>
|
|
- <td v-show="inclusion[index]" >
|
|
|
|
|
|
+ <td @if(@$note) v-show="inclusion[index]" @endif>
|
|
<div class="px-2 py-1 bg-white border-bottom text-secondary" v-if="item.previous_plan">
|
|
<div class="px-2 py-1 bg-white border-bottom text-secondary" v-if="item.previous_plan">
|
|
<b><i class="fa fa-clock mr-1 text-sm"></i>Previous Plan: </b><br>
|
|
<b><i class="fa fa-clock mr-1 text-sm"></i>Previous Plan: </b><br>
|
|
<div v-html="item.previous_plan"></div>
|
|
<div v-html="item.previous_plan"></div>
|
|
@@ -144,7 +144,7 @@ $formID = rand(0, 100000);
|
|
dx-rte :data-index="index" data-field="plan"
|
|
dx-rte :data-index="index" data-field="plan"
|
|
v-model="item.plan"></textarea>
|
|
v-model="item.plan"></textarea>
|
|
</td>
|
|
</td>
|
|
- <td v-show="inclusion[index]" class="px-2 text-nowrap">
|
|
|
|
|
|
+ <td @if(@$note) v-show="inclusion[index]" @endif class="px-2 text-nowrap">
|
|
<a href="#"
|
|
<a href="#"
|
|
v-if="!isFavorite(item)" v-on:click.prevent="addToFavorites(item)"
|
|
v-if="!isFavorite(item)" v-on:click.prevent="addToFavorites(item)"
|
|
class="mt-1 d-inline-block mr-1 text-secondary on-hover-opaque"
|
|
class="mt-1 d-inline-block mr-1 text-secondary on-hover-opaque"
|
|
@@ -162,9 +162,11 @@ $formID = rand(0, 100000);
|
|
<i class="fa fa-trash-alt"></i>
|
|
<i class="fa fa-trash-alt"></i>
|
|
</a>
|
|
</a>
|
|
</td>
|
|
</td>
|
|
|
|
+ @if(@$note)
|
|
<td v-show="!inclusion[index]" colspan="3" class="align-middle pl-2">
|
|
<td v-show="!inclusion[index]" colspan="3" class="align-middle pl-2">
|
|
<span v-html="item.title"></span>
|
|
<span v-html="item.title"></span>
|
|
</td>
|
|
</td>
|
|
|
|
+ @endif
|
|
</tr>
|
|
</tr>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
@@ -191,16 +193,15 @@ $formID = rand(0, 100000);
|
|
let saved = <?= json_encode($contentData['items']) ?>;
|
|
let saved = <?= json_encode($contentData['items']) ?>;
|
|
// if FU, copy hpi into previous_hpi for each item, and empty out hpi
|
|
// if FU, copy hpi into previous_hpi for each item, and empty out hpi
|
|
@if(@$note && $note->new_or_fu_or_na === 'FU')
|
|
@if(@$note && $note->new_or_fu_or_na === 'FU')
|
|
- for (let i = 0; i < saved.length; i++) {
|
|
|
|
- if(saved[i].note_uid !== '{{$note->uid}}') {
|
|
|
|
- if(saved[i].detail) saved[i].previous_hpi = saved[i].detail;
|
|
|
|
- if(saved[i].plan) saved[i].previous_plan = saved[i].plan;
|
|
|
|
- saved[i].detail = '';
|
|
|
|
- saved[i].plan = '';
|
|
|
|
- saved[i].note_uid = '{{$note->uid}}';
|
|
|
|
- }
|
|
|
|
|
|
+ for (let i = 0; i < saved.length; i++) {
|
|
|
|
+ if(saved[i].note_uid !== '{{$note->uid}}') {
|
|
|
|
+ if(saved[i].detail) saved[i].previous_hpi = saved[i].detail;
|
|
|
|
+ if(saved[i].plan) saved[i].previous_plan = saved[i].plan;
|
|
|
|
+ saved[i].detail = '';
|
|
|
|
+ saved[i].plan = '';
|
|
|
|
+ saved[i].note_uid = '{{$note->uid}}';
|
|
}
|
|
}
|
|
- console.log('ALIX', saved)
|
|
|
|
|
|
+ }
|
|
@endif
|
|
@endif
|
|
|
|
|
|
function init() {
|
|
function init() {
|