|
@@ -56,7 +56,20 @@ if ($latestSectionTS === 0 || $latestSectionTS < $sectionTS) {
|
|
|
|
|
|
</div>
|
|
|
<div class="d-none if-not-edit inset-comment summary-container">
|
|
|
- {!! !empty($section->summary_html) ? $section->summary_html : '-' !!}
|
|
|
+ @if($section->sectionTemplate->is_canvas)
|
|
|
+ <?php
|
|
|
+ $contentData = false;
|
|
|
+ if ($patient->canvas_data) {
|
|
|
+ $canvasData = json_decode($patient->canvas_data, true);
|
|
|
+ if (isset($canvasData[$sectionInternalName])) {
|
|
|
+ $contentData = $canvasData[$sectionInternalName];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ @include('app.patient.canvas-sections.pmhx.summary')
|
|
|
+ @else
|
|
|
+ {!! !empty($section->summary_html) ? $section->summary_html : '-' !!}
|
|
|
+ @endif
|
|
|
</div>
|
|
|
|
|
|
<div class="d-none if-edit">
|
|
@@ -181,7 +194,6 @@ if ($latestSectionTS === 0 || $latestSectionTS < $sectionTS) {
|
|
|
|
|
|
var _form = _section.find('form[processed]')[0];
|
|
|
if(_form){
|
|
|
- console.log("Form found: ", _form);
|
|
|
console.log("Form found. submitting normally");
|
|
|
$.post("/process_form_submit", $(_form).serialize(), function(resp) {
|
|
|
handleSubmitResponse(resp,_section, summaryContainer)
|