Team 3 Doctor Activities for Neb 2 form changes
Specific Folder FTP Upload / ftp-deploy (push) Successful in 44s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 44s
Details
This commit is contained in:
parent
47dde3c499
commit
2fbe2cefc3
|
|
@ -116,7 +116,7 @@
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@foreach ($questions as $question)
|
@foreach ($questions as $question)
|
||||||
@if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules','other_msl_code','other_speciality']))
|
@if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules','other_msl_code','other_speciality','other_speaker_name']))
|
||||||
@continue
|
@continue
|
||||||
@endif
|
@endif
|
||||||
<div class="col-md-12 mb-2">
|
<div class="col-md-12 mb-2">
|
||||||
|
|
@ -247,6 +247,21 @@
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
<option value="other" speciality="" msl_code="">Other</option>
|
<option value="other" speciality="" msl_code="">Other</option>
|
||||||
|
|
||||||
|
@elseif ($question->code == 'other_speaker_name')
|
||||||
|
@foreach ($question->options as $option)
|
||||||
|
@if(
|
||||||
|
!isset($option->contact->doctor_activities_for_neb_2_top_30_next_30_doctors) ||
|
||||||
|
$option->contact->doctor_activities_for_neb_2_top_30_next_30_doctors === null
|
||||||
|
)
|
||||||
|
<option value="{{ $option->value }}" speciality="{{isset($option->contact->speciality)?$option->contact->speciality:''}}" 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
|
@else
|
||||||
@foreach ($question->options as $option)
|
@foreach ($question->options as $option)
|
||||||
<option value="{{ $option->value }}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
<option value="{{ $option->value }}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||||
|
|
@ -415,7 +430,7 @@
|
||||||
let type_of_meet=$('#execution-type_of_meeting').val();
|
let type_of_meet=$('#execution-type_of_meeting').val();
|
||||||
console.log("Type of Meet",type_of_meet);
|
console.log("Type of Meet",type_of_meet);
|
||||||
|
|
||||||
if(type_of_meet==='Asthma camp'){
|
if(type_of_meet==='GNP Camp'){
|
||||||
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().show();
|
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().show();
|
||||||
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',true);
|
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',true);
|
||||||
$('label[for="execution-name_of_the_speaker"]').html('Name of the Speaker (Pedia or GP only) ');
|
$('label[for="execution-name_of_the_speaker"]').html('Name of the Speaker (Pedia or GP only) ');
|
||||||
|
|
@ -428,8 +443,8 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$('#execution-other_msl_code,#execution-other_speciality').parent().hide();
|
$('#execution-other_msl_code,#execution-other_speciality,#execution-other_speaker_name').parent().hide();
|
||||||
$('#execution-other_msl_code,#execution-other_speciality').attr('required',false);
|
$('#execution-other_msl_code,#execution-other_speciality,#execution-other_speaker_name').attr('required',false);
|
||||||
|
|
||||||
|
|
||||||
let type_of_meet=$('#execution-type_of_meeting').val();
|
let type_of_meet=$('#execution-type_of_meeting').val();
|
||||||
|
|
@ -448,28 +463,37 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#execution-name_of_the_speaker').change(function() {
|
$('#execution-name_of_the_speaker').change(function() {
|
||||||
$('#execution-msl_code').val($('option:selected', this).attr('msl_code'))
|
$('#execution-msl_code').val($('option:selected', this).attr('msl_code'))
|
||||||
})
|
})
|
||||||
|
|
||||||
$('#execution-name_of_the_speaker').change(function() {
|
$('#execution-name_of_the_speaker').change(function() {
|
||||||
$('#execution-speciality').val($('option:selected', this).attr('speciality'))
|
$('#execution-speciality').val($('option:selected', this).attr('speciality'))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
$('#execution-other_speaker_name').change(function() {
|
||||||
|
$('#execution-other_msl_code').val($('option:selected', this).attr('msl_code'))
|
||||||
|
})
|
||||||
|
|
||||||
|
$('#execution-other_speaker_name').change(function() {
|
||||||
|
$('#execution-other_speciality').val($('option:selected', this).attr('speciality'))
|
||||||
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
$('#execution-msl_code,#execution-speciality').attr('readonly',true);
|
$('#execution-msl_code,#execution-speciality,#execution-other_msl_code,#execution-other_speciality').attr('readonly',true);
|
||||||
|
|
||||||
$('#execution-name_of_the_speaker').change(function() {
|
$('#execution-name_of_the_speaker').change(function() {
|
||||||
let value=$(this).val();
|
let value=$(this).val();
|
||||||
if(value==='other'){
|
if(value==='other'){
|
||||||
$('#execution-other_msl_code,#execution-other_speciality').parent().show();
|
$('#execution-other_msl_code,#execution-other_speciality,#execution-other_speaker_name').parent().show();
|
||||||
$('#execution-other_msl_code,#execution-other_speciality').attr('required',true);
|
$('#execution-other_msl_code,#execution-other_speciality,#execution-other_speaker_name').attr('required',true);
|
||||||
|
|
||||||
$('#execution-msl_code,#execution-speciality').parent().hide();
|
$('#execution-msl_code,#execution-speciality').parent().hide();
|
||||||
$('#execution-msl_code,#execution-speciality').attr('required',false);
|
$('#execution-msl_code,#execution-speciality').attr('required',false);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$('#execution-other_msl_code,#execution-other_speciality').parent().hide();
|
$('#execution-other_msl_code,#execution-other_speciality,#execution-other_speaker_name').parent().hide();
|
||||||
$('#execution-other_msl_code,#execution-other_speciality').attr('required',false);
|
$('#execution-other_msl_code,#execution-other_speciality,#execution-other_speaker_name').attr('required',false);
|
||||||
$('#execution-msl_code,#execution-speciality').parent().show();
|
$('#execution-msl_code,#execution-speciality').parent().show();
|
||||||
$('#execution-msl_code,#execution-speciality').attr('required',true);
|
$('#execution-msl_code,#execution-speciality').attr('required',true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue