Team 3 (TOBA TITANS Enrollment) Doc Name Code
Specific Folder FTP Upload / ftp-deploy (push) Successful in 46s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 46s
Details
This commit is contained in:
parent
89f75b25fa
commit
4f3b4060cc
|
|
@ -210,7 +210,7 @@
|
||||||
@if($question->code == 'contact_id')
|
@if($question->code == 'contact_id')
|
||||||
msl_code="{{ (isset($option->contact->legacy_code) ? $option->contact->legacy_code : '') }}"
|
msl_code="{{ (isset($option->contact->legacy_code) ? $option->contact->legacy_code : '') }}"
|
||||||
pcode="{{ (isset($option->contact->msl_code) ? $option->contact->msl_code : '') }}"
|
pcode="{{ (isset($option->contact->msl_code) ? $option->contact->msl_code : '') }}"
|
||||||
|
data-doctor-name="{{ $option->display }}"
|
||||||
speciality="{{ (isset($option->contact->speciality) ? $option->contact->speciality : '') }}"
|
speciality="{{ (isset($option->contact->speciality) ? $option->contact->speciality : '') }}"
|
||||||
@endif
|
@endif
|
||||||
>
|
>
|
||||||
|
|
@ -219,6 +219,7 @@
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
|
<input type="hidden" id="field-doctor_name" name="doctor_name[0]" value="">
|
||||||
@else
|
@else
|
||||||
<select class="form-control" id="execution-{{ $question->code }}"
|
<select class="form-control" id="execution-{{ $question->code }}"
|
||||||
name="{{ $question->code }}[0]"
|
name="{{ $question->code }}[0]"
|
||||||
|
|
@ -505,10 +506,19 @@
|
||||||
|
|
||||||
var index = this.id.replace('field-contact_id', '');
|
var index = this.id.replace('field-contact_id', '');
|
||||||
|
|
||||||
|
var cleanDoctorName = $selected.attr('data-doctor-name') || $selected.text().replace(' (Already Added)', '').trim();
|
||||||
|
if ($(this).val() === '') {
|
||||||
|
cleanDoctorName = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$('#field-msl_code' + index).val($selected.attr('msl_code') || '');
|
$('#field-msl_code' + index).val($selected.attr('msl_code') || '');
|
||||||
$('#field-speciality' + index).val($selected.attr('speciality') || '');
|
$('#field-speciality' + index).val($selected.attr('speciality') || '');
|
||||||
$('#field-pcode' + index).val($selected.attr('pcode') || '');
|
$('#field-pcode' + index).val($selected.attr('pcode') || '');
|
||||||
|
|
||||||
|
|
||||||
|
$('#field-doctor_name' + index).val(cleanDoctorName);
|
||||||
|
|
||||||
preventDuplicateDoctors();
|
preventDuplicateDoctors();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -555,6 +565,7 @@
|
||||||
<select class="form-control" id="field-{{$question->code}}-${doctor_count}" name="{{$question->code}}[${doctor_count}]" {{$question->required == 'yes'?'required':'' }}>
|
<select class="form-control" id="field-{{$question->code}}-${doctor_count}" name="{{$question->code}}[${doctor_count}]" {{$question->required == 'yes'?'required':'' }}>
|
||||||
@if($question->code=='contact_id')
|
@if($question->code=='contact_id')
|
||||||
${doctorName}
|
${doctorName}
|
||||||
|
<input type="hidden" id="field-doctor_name-${doctor_count}" name="doctor_name[${doctor_count}]" value="">
|
||||||
@else
|
@else
|
||||||
<option value=""> -- Select -- </option>
|
<option value=""> -- Select -- </option>
|
||||||
@foreach($question->options as $option)
|
@foreach($question->options as $option)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue