Titans Form changes Ciphaler Rxn Tracker-removed doctor
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m44s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m44s
Details
This commit is contained in:
parent
530ab9200e
commit
9331d4cd72
|
|
@ -38,25 +38,8 @@
|
|||
<h6>Submitted By: {{$form->user_info->name}}</h6>
|
||||
</div>
|
||||
@endif
|
||||
@php
|
||||
$taggedDoctorCount = 0;
|
||||
|
||||
foreach ($questions as $question) {
|
||||
if ($question->code == 'contact_id') {
|
||||
foreach ($question->options as $option) {
|
||||
if (
|
||||
isset($option->contact->ciphaler_tagged) &&
|
||||
$option->contact->ciphaler_tagged == 'yes'
|
||||
) {
|
||||
$taggedDoctorCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$isTaggingComplete = ($taggedDoctorCount > 0);
|
||||
@endphp
|
||||
@if($isTaggingComplete)
|
||||
<form method="POST" action="/form/submit" id="report-form" enctype="multipart/form-data">
|
||||
<input type="hidden" name="form_id" value="{{$form_id}}">
|
||||
<input type="hidden" name="user_id" value="{{$form->user_id}}">
|
||||
|
|
@ -103,11 +86,12 @@
|
|||
<option value=""> -- Select -- </option>
|
||||
@if ($question->code == 'contact_id')
|
||||
@foreach ($question->options as $option)
|
||||
@if( isset($option->contact->ciphaler_tagged) && $option->contact->ciphaler_tagged == 'yes' )
|
||||
<option value="{{ $option->value }}" pcode="{{isset($option->contact->pcode)?$option->contact->pcode:''}}" msl_code="{{isset($option->contact->msl_code)?$option->contact->msl_code:''}}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||
<option value="{{ $option->value }}"
|
||||
pcode="{{ isset($option->contact->pcode) ? $option->contact->pcode : '' }}"
|
||||
msl_code="{{ isset($option->contact->msl_code) ? $option->contact->msl_code : '' }}"
|
||||
{{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||
{{ $option->display }}
|
||||
</option>
|
||||
@endif
|
||||
@endforeach
|
||||
@else
|
||||
@foreach ($question->options as $option)
|
||||
|
|
@ -163,7 +147,7 @@
|
|||
</div>
|
||||
@endif
|
||||
</form>
|
||||
@endif
|
||||
|
||||
|
||||
</div> <!-- end card-body -->
|
||||
</div>
|
||||
|
|
@ -198,19 +182,8 @@
|
|||
</style>
|
||||
@include('layouts.shared/footer-script')
|
||||
<script src="{{asset('assets/libs/sweetalert2/sweetalert2.min.js')}}"></script>
|
||||
@if(!$isTaggingComplete)
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
Swal.fire({
|
||||
icon: 'warning',
|
||||
title: 'Incomplete Tagging',
|
||||
text: 'Tagging is incomplete. Please complete tagging through My Doctors.',
|
||||
allowOutsideClick: false,
|
||||
confirmButtonText: 'OK'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endif
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
if($('#field-contact_id').val() === 'others'){
|
||||
|
|
|
|||
Loading…
Reference in New Issue