Team 3 (Neb Arise Doctor Activity)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m47s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m47s
Details
This commit is contained in:
parent
2df557edfd
commit
bd7c619c74
|
|
@ -411,7 +411,9 @@
|
||||||
$('#execution-form-wrapper').show()
|
$('#execution-form-wrapper').show()
|
||||||
$('#table-wrapper').hide()
|
$('#table-wrapper').hide()
|
||||||
$('#execution-attendence').attr({min:"1"});
|
$('#execution-attendence').attr({min:"1"});
|
||||||
$('#execution-no_of_patients_on_duolin').attr('max',10);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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);
|
||||||
|
|
@ -419,17 +421,17 @@
|
||||||
if(type_of_meet==='Asthma Camp'){
|
if(type_of_meet==='Asthma 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);
|
||||||
|
$('#execution-no_of_patients_on_duolin').attr('max',10);
|
||||||
$('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) ');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().hide();
|
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().hide();
|
||||||
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',false);
|
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',false);
|
||||||
$('label[for="execution-name_of_the_speaker"]').html('Name of the speaker');
|
$('label[for="execution-name_of_the_speaker"]').html('Name of the speaker');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#execution-type_of_meeting').on('change',function(){
|
$('#execution-type_of_meeting').on('change',function(){
|
||||||
let type_of_meet=$('##execution-type_of_meeting').val();
|
let type_of_meet=$('#execution-type_of_meeting').val();
|
||||||
if(type_of_meet==='Asthma Camp'){
|
if(type_of_meet==='Asthma 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);
|
||||||
|
|
@ -446,8 +448,8 @@
|
||||||
|
|
||||||
$('.edit-plan-btn').click(function(){
|
$('.edit-plan-btn').click(function(){
|
||||||
|
|
||||||
$('#execution-new_continue,#execution-lta_regional,#execution-physical_virtual,#execution-yearly_honorarium,#execution-venue_av_food_etc_cost,#execution-total_eas_required').parent().hide();
|
$('#execution-new_continue,#execution-lta_regional,#execution-physical_virtual,#execution-yearly_honorarium,#execution-venue_av_food_etc_cost,#execution-total_eas_required').parent().hide();
|
||||||
$('#execution-new_continue,#execution-lta_regional,#execution-physical_virtual,#execution-yearly_honorarium,#execution-venue_av_food_etc_cost,#execution-total_eas_required').prop('required',false);
|
$('#execution-new_continue,#execution-lta_regional,#execution-physical_virtual,#execution-yearly_honorarium,#execution-venue_av_food_etc_cost,#execution-total_eas_required').prop('required',false);
|
||||||
|
|
||||||
|
|
||||||
let selected = JSON.parse($(this).attr('plan_details'))
|
let selected = JSON.parse($(this).attr('plan_details'))
|
||||||
|
|
@ -463,10 +465,11 @@
|
||||||
if (selected[k] !== '') {
|
if (selected[k] !== '') {
|
||||||
$input.show().prop('required', true).val(selected[k]); // show + make required if needed
|
$input.show().prop('required', true).val(selected[k]); // show + make required if needed
|
||||||
|
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$input.show().prop('required', false).val('');
|
$input.show().prop('required', false).val('');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$('#execution-id').val(selected['id'])
|
$('#execution-id').val(selected['id'])
|
||||||
$('#form-wrapper').hide()
|
$('#form-wrapper').hide()
|
||||||
$('#execution-form-wrapper').show()
|
$('#execution-form-wrapper').show()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue