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>
|
<h6>Submitted By: {{$form->user_info->name}}</h6>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@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">
|
<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="form_id" value="{{$form_id}}">
|
||||||
<input type="hidden" name="user_id" value="{{$form->user_id}}">
|
<input type="hidden" name="user_id" value="{{$form->user_id}}">
|
||||||
|
|
@ -102,20 +85,21 @@
|
||||||
<select class="form-control" id="field-{{ $question->code }}" name="{{ $question->code }}" {{ $question->required == 'yes' ? 'required' : '' }}>
|
<select class="form-control" id="field-{{ $question->code }}" name="{{ $question->code }}" {{ $question->required == 'yes' ? 'required' : '' }}>
|
||||||
<option value=""> -- Select -- </option>
|
<option value=""> -- Select -- </option>
|
||||||
@if ($question->code == 'contact_id')
|
@if ($question->code == 'contact_id')
|
||||||
@foreach ($question->options as $option)
|
@foreach ($question->options as $option)
|
||||||
@if( isset($option->contact->ciphaler_tagged) && $option->contact->ciphaler_tagged == 'yes' )
|
<option value="{{ $option->value }}"
|
||||||
<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' : '' }}>
|
pcode="{{ isset($option->contact->pcode) ? $option->contact->pcode : '' }}"
|
||||||
{{ $option->display }}
|
msl_code="{{ isset($option->contact->msl_code) ? $option->contact->msl_code : '' }}"
|
||||||
</option>
|
{{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||||
@endif
|
{{ $option->display }}
|
||||||
@endforeach
|
</option>
|
||||||
@else
|
@endforeach
|
||||||
@foreach ($question->options as $option)
|
@else
|
||||||
<option value="{{ $option->value }}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
@foreach ($question->options as $option)
|
||||||
{{ $option->display }}
|
<option value="{{ $option->value }}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||||
</option>
|
{{ $option->display }}
|
||||||
@endforeach
|
</option>
|
||||||
@endif
|
@endforeach
|
||||||
|
@endif
|
||||||
</select>
|
</select>
|
||||||
@break
|
@break
|
||||||
@case('checkbox')
|
@case('checkbox')
|
||||||
|
|
@ -163,7 +147,7 @@
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</form>
|
</form>
|
||||||
@endif
|
|
||||||
|
|
||||||
</div> <!-- end card-body -->
|
</div> <!-- end card-body -->
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -198,19 +182,8 @@
|
||||||
</style>
|
</style>
|
||||||
@include('layouts.shared/footer-script')
|
@include('layouts.shared/footer-script')
|
||||||
<script src="{{asset('assets/libs/sweetalert2/sweetalert2.min.js')}}"></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">
|
<script type="text/javascript">
|
||||||
jQuery(document).ready(function($){
|
jQuery(document).ready(function($){
|
||||||
if($('#field-contact_id').val() === 'others'){
|
if($('#field-contact_id').val() === 'others'){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue