|
@@ -0,0 +1,100 @@
|
|
|
|
+
|
|
|
|
+<?php $iName = $segment->segmentTemplate->internal_name; ?>
|
|
|
|
+<?php $isLSSegment = strpos($iName, 'lifestyle_') === 0; ?>
|
|
|
|
+<div class="ml-2">
|
|
|
|
+ @if($iName === 'medrisk_vigilence')
|
|
|
|
+ <div class="font-weight-bold text-center flex-grow-1">
|
|
|
|
+ <div class="on-hover-hide font-weight-normal text-info font-weight-bold text-center pt-2 font-size-11">MRV</div>
|
|
|
|
+ <span class="on-hover-only text-left">MedRisk Vigilence</span>
|
|
|
|
+ </div>
|
|
|
|
+ @else
|
|
|
|
+ <span class="font-weight-bold d-flex align-items-center {{$isLSSegment || $iName === 'medrisk_vigilence' ? '' : 'xxxmb-2'}}" style="">
|
|
|
|
+ <span style="color: black; text-decoration: underline; font-size: 13px;">
|
|
|
|
+ @if($isLSSegment && $iName === 'lifestyle_general')
|
|
|
|
+ Lifestyle
|
|
|
|
+ @else
|
|
|
|
+ {{$segment->display_title}}
|
|
|
|
+ @endif
|
|
|
|
+ </span>
|
|
|
|
+ @if($segment->heading && $iName !== 'medrisk_vigilence')
|
|
|
|
+ <span class="text-secondary ml-2 text-sm font-weight-normal">({{$segment->heading}})</span>
|
|
|
|
+ @endif
|
|
|
|
+ </span>
|
|
|
|
+ @endif
|
|
|
|
+
|
|
|
|
+ @if($isLSSegment)
|
|
|
|
+ @if($iName === 'lifestyle_general')
|
|
|
|
+ <a href="#" class="ls-segment-trigger ml-2" data-target="lifestyle_general">General</a>
|
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
+ <a href="#" class="ls-segment-trigger" data-target="lifestyle_nutrition">Nutrition</a>
|
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
+ <a href="#" class="ls-segment-trigger" data-target="lifestyle_physical_activity">Physical Act.</a>
|
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
+ <a href="#" class="ls-segment-trigger" data-target="lifestyle_sleep">Sleep</a>
|
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
+ <a href="#" class="ls-segment-trigger" data-target="lifestyle_social">Social Relns.</a>
|
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
+ <a href="#" class="ls-segment-trigger" data-target="lifestyle_substances">Subst. Use</a>
|
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
+ <a href="#" class="ls-segment-trigger" data-target="lifestyle_stress">Stress</a>
|
|
|
|
+ @else
|
|
|
|
+ <span class="text-info ml-auto font-weight-normal">(click to view)</span>
|
|
|
|
+ @endif
|
|
|
|
+ @endif
|
|
|
|
+</div>
|
|
|
|
+@if($segment->currentSegmentSummarySuggestion)
|
|
|
|
+<div class="shadow m-2 p-2">
|
|
|
|
+ Current Suggestion: {!! $segment->currentSegmentSummarySuggestion->summary_html !!}
|
|
|
|
+
|
|
|
|
+ <div class="d-block mt-1" moe>
|
|
|
|
+ <a start >Accept</a>
|
|
|
|
+ <form url="/api/segment/putSegmentSummaryChange" >
|
|
|
|
+ <input type="hidden" name="uid" value="{{$segment->uid}}">
|
|
|
|
+ <textarea rte name="newSummaryHtml">{!! $segment->currentSegmentSummarySuggestion->summary_html !!}</textarea>
|
|
|
|
+ <div class="mb-0">
|
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="">
|
|
|
|
+ status: {{$segment->currentSegmentSummarySuggestion->status}} - {{$segment->currentSegmentSummarySuggestion->status_memo}}
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <div class="d-block mt-1" moe>
|
|
|
|
+ <a class="text-nowrap" href="" show start>Update Status</a>
|
|
|
|
+ <form url="/api/segmentSummarySuggestion/update-status">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$segment->currentSegmentSummarySuggestion->uid}}">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="" class="control-label">Status</label>
|
|
|
|
+ <input type="text" name="status" class="form-control input-sm">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="" class="control-label">Memo</label>
|
|
|
|
+ <textarea name="memo" class="form-control input-sm"></textarea>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-0">
|
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+@endif
|
|
|
|
+
|
|
|
|
+<div class="row ml-2 border m-2 p-2">
|
|
|
|
+ <div class="d-block mt-1" moe>
|
|
|
|
+ <form url="/api/segment/putSegmentSummarySuggestion" show>
|
|
|
|
+ <input type="hidden" name="uid" value="{{$segment->uid}}">
|
|
|
|
+ <textarea name="suggestedSummaryHtml" rte>
|
|
|
|
+ {!! $segment->getRecalculatedHtml($performer)['summaryHtml'] !!}
|
|
|
|
+ </textarea>
|
|
|
|
+ <div class="mb-0 mt-2">
|
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|