[form] page_title= add_form_title=Profile Details view_form_title=Profile Details edit_form_title=Profile Details id_column_name=estblishment_id form_validation=1 form_name=frm_profile form_method=POST enctype=multipart/form-data form_action=/resource/update-profile data_collection_name=profile_info edit_link=/establishment/add-establishment?estblishment_id= ;back_link=/master-data/photographers ;cancel_link=/master-data/view-photographer?photographer_id= form_element_type=1 [dropdowns] ;id name data_collection_name cssClass rows value id_column_name text_column_name select_text multiple ;--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- district_id, district_id, details, validate[required], district, district_id, district_id, name, -- Head Office --, 0 role_id, role_id, details, validate[required], role, role_id, role_id, position, , 0 ;ds_id, ds_id, esta_info, validate[required], district, ds_id, ds_id, ds_name, -- ALL --, 0 ;dropdown_meter_full_name, meter_full_name, meter_info, validate[required], dropdown_meter_full_name, meter_full_name, meter_full_name, meter_full_name, -- Select a meter --, 0 ;reading_mode, reading_mode, meter_info, width-200, dropdown_reading_mode, reading_mode, reading_mode, reading_mode, , , [hidden fields] ;field_id, value_filed, ;-------------------------------------------------------- ;district_id, district_id ;ds_id, ds_id ;epf_no, epf_no ;ser name, epf_no [fields] ;caption, type, display_mode, field_id, value_filed, cssClass, required(1 or 0), compare_filed, row_css ; 0 or null = All ; 1 = Edit only ; 2 = Add only ; 3 = View only ;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Name with Initials, text, , initials, initials, , 1, , col-md-6 ;DS Divition , text, , ds_name, ds_name, , 1, , col-md-6 EPF No, text, , epf_no, epf_no, , 1, , col-md-6 Role, dropdown, , role_id, position, validate[required] width-600, 1, , col-md-6 Address, text, , address, address, validate[required] width-600, 1, , col-md-6 NIC, text, , ID_no, ID_no, , , 1, col-md-6 Phone Number(Office), text, , phone_call, phone_call, validate[required] width-600, 1, , col-md-6 Whatsapp Number, text, , mobile, mobile, validate[required] width-600, 1, , col-md-6 Working Office, dropdown, , district_id, name, validate[required] width-600, 1, , col-md-6 Education Qualification, text, , degree, degree, validate[required] width-600, 1, , col-md-6 Profile Picture, file, , profile_pic, profile_pic, validate[required] width-600, 0, , col-md-6 Working Divitions/Section, text, , divition, divition, validate[required] width-600, 1, , col-md-6 ;DS Divition, dropdown, , ds_id, ds_name, , 1, , col-md-6 [buttons] ;button_ype, button_id, button_caption, css_style, button_location, button_mode ;(button/submit/rest) left/right 0 = View | 1 = Edit ;-------------------------------------------------------------------------------------------------------------------------------------------------------- button, btn_edit, Edit, btn-primary, right, 0 ;button, btn_back, Back, btn-default, right, 0 ;button, btn_change_meter_full_name, Change Meter Tag, btn-primary, left, 1 button, btn_save, Submit, btn-primary, right, 1 ;button, btn_cancel, Cancel, btn-default, right, 1 ;button, btn_back, Back, btn-primary, left, 1 [script] $('#btn_save').click(function () { var error = 0; if(!$('#initials').val()) { error = 1 }else if(!$('#epf_no').val()) { error = 1 }else if(!$('#ID_no').val()) { error = 1 }else if(!$('#mobile').val()) { error = 1 }else if(!$('#divition').val()) { error = 1 }else if(!$('#profile_pic').val()) { error = 1 } if(error == 1) { alert("Plz fill empty fields"); }else { $('#frm_profile').submit(); } })