add history_facilities loan request
This commit is contained in:
@@ -152,6 +152,7 @@
|
||||
"back_to_dashboard": "پیگیری درخواست ها",
|
||||
"cityList_empty": "ابتدا استان را وارد کنید",
|
||||
"cityList_loading": "درحال دریافت لیست شهر ها ...",
|
||||
"history_facilities": "دارای سابقه استفاده از تسهیلات تکلیفی می باشم .",
|
||||
"loan_request_page": "ثبت درخواست وام",
|
||||
"personal_info": "اطلاعات شخصی",
|
||||
"real_person": "شخص حقیقی",
|
||||
|
||||
@@ -66,6 +66,7 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
|
||||
plate_part4: "",
|
||||
birthday: "",
|
||||
checkedBox: false,
|
||||
history_facilities: false,
|
||||
};
|
||||
|
||||
const validationSchema = Yup.object().shape({
|
||||
@@ -166,6 +167,7 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
|
||||
plate_part2: values.plate_part2,
|
||||
plate_part3: values.plate_part3,
|
||||
plate_part4: values.plate_part4,
|
||||
history_facilities: values.history_facilities === true ? 1 : 0,
|
||||
birthday: values.birthday.locale("en").format("YYYY-MM-DD"),
|
||||
..._national_card,
|
||||
..._father_name
|
||||
@@ -195,7 +197,6 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
|
||||
onSubmit: handleSubmit,
|
||||
});
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<Grid container spacing={2} sx={{p: 2}}>
|
||||
@@ -688,7 +689,23 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid container spacing={2} sx={{padding: 2}}>
|
||||
<Grid container sx={{padding: 2}}>
|
||||
<Grid item xs={12}>
|
||||
<FormControlLabel
|
||||
color={"error.main"}
|
||||
control={
|
||||
<Checkbox
|
||||
checked={formik.values.history_facilities}
|
||||
onChange={(event) => {
|
||||
formik.setFieldValue("history_facilities", event.target.checked);
|
||||
}}
|
||||
/>
|
||||
}
|
||||
label={`${t("LoanRequest.history_facilities")}`}
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid container sx={{px: 2}}>
|
||||
<Grid item xs={12}>
|
||||
<FormControlLabel
|
||||
color={"error.main"}
|
||||
|
||||
Reference in New Issue
Block a user