Titans - Ciphaler Form changes
This commit is contained in:
parent
f26cf8dfd8
commit
aa81e6e90f
|
|
@ -90,7 +90,10 @@
|
||||||
</option>
|
</option>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
<option value="others">Others</option>
|
<option value="others"
|
||||||
|
{{ isset($question->value) && $question->value == 'others' ? 'selected' : '' }}>
|
||||||
|
Others
|
||||||
|
</option>
|
||||||
@else
|
@else
|
||||||
@foreach ($question->options as $option)
|
@foreach ($question->options as $option)
|
||||||
<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' : '' }}>
|
||||||
|
|
@ -181,6 +184,12 @@
|
||||||
<script src="{{asset('assets/libs/sweetalert2/sweetalert2.min.js')}}"></script>
|
<script src="{{asset('assets/libs/sweetalert2/sweetalert2.min.js')}}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
jQuery(document).ready(function($){
|
jQuery(document).ready(function($){
|
||||||
|
if($('#field-contact_id').val() === 'others'){
|
||||||
|
$('#field-name_of_other_hcp,#field-p_code_of_other_hcp')
|
||||||
|
.parent().show();
|
||||||
|
|
||||||
|
$('#field-msl_code').parent().hide();
|
||||||
|
}
|
||||||
var today = new Date().toISOString().split('T')[0];
|
var today = new Date().toISOString().split('T')[0];
|
||||||
|
|
||||||
$('#field-record_date').attr('max', today);
|
$('#field-record_date').attr('max', today);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue