|
|
@ -18,6 +18,7 @@ const Register = ({ activeLogin }) => { |
|
|
|
const [index, setIndex] = useState(1); |
|
|
|
const [index, setIndex] = useState(1); |
|
|
|
const [register, setRegister] = useState(false); |
|
|
|
const [register, setRegister] = useState(false); |
|
|
|
const timeoutRef = useRef(null); |
|
|
|
const timeoutRef = useRef(null); |
|
|
|
|
|
|
|
const [activeStep, setActiveStep] = useState([true, false, false, false]); |
|
|
|
|
|
|
|
|
|
|
|
const focusHandler = (id) => { |
|
|
|
const focusHandler = (id) => { |
|
|
|
let inputs = document.querySelectorAll(".Login-box-form-item"); |
|
|
|
let inputs = document.querySelectorAll(".Login-box-form-item"); |
|
|
@ -46,19 +47,19 @@ const Register = ({ activeLogin }) => { |
|
|
|
const stepCont = [ |
|
|
|
const stepCont = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'اطلاعات هویتی', |
|
|
|
title: 'اطلاعات هویتی', |
|
|
|
step: 0 |
|
|
|
active: activeStep[0] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'مشخصات والدین', |
|
|
|
title: 'مشخصات والدین', |
|
|
|
step: 1 |
|
|
|
active: activeStep[1] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'قوانین و مقررات', |
|
|
|
title: 'قوانین و مقررات', |
|
|
|
step: 2 |
|
|
|
active: activeStep[2] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'تایید اطلاعات', |
|
|
|
title: 'تایید اطلاعات', |
|
|
|
step: 3 |
|
|
|
active: activeStep[3] |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
const grades = [ |
|
|
|
const grades = [ |
|
|
@ -122,7 +123,6 @@ const Register = ({ activeLogin }) => { |
|
|
|
<div className="w-full flex justify-center" style={{ direction: 'rtl', marginTop: '8.5%' }}> |
|
|
|
<div className="w-full flex justify-center" style={{ direction: 'rtl', marginTop: '8.5%' }}> |
|
|
|
<div className="w-11/12 flex "> |
|
|
|
<div className="w-11/12 flex "> |
|
|
|
{/* form */} |
|
|
|
{/* form */} |
|
|
|
|
|
|
|
|
|
|
|
<div className="flex w-1/5 border-0 border-l border-solid border flex-col items-center p-6"> |
|
|
|
<div className="flex w-1/5 border-0 border-l border-solid border flex-col items-center p-6"> |
|
|
|
|
|
|
|
|
|
|
|
<img src={logo} className="w-1/2 m-4 mt-0" /> |
|
|
|
<img src={logo} className="w-1/2 m-4 mt-0" /> |
|
|
@ -155,7 +155,7 @@ const Register = ({ activeLogin }) => { |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
} */} |
|
|
|
} */} |
|
|
|
<Stepper count={4} currentStep={steps}/> |
|
|
|
<Stepper count={4} currentStep={steps} steps={stepCont} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -188,10 +188,10 @@ const Register = ({ activeLogin }) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="w-3/5 flex justify-center"> |
|
|
|
<div className="w-3/5 flex justify-center"> |
|
|
|
<div className="w-2/5 mx-4"> |
|
|
|
<div className="w-2/5 mx-4"> |
|
|
|
<FileInput title="بارگزای صفحه اول شناسنامه" id={1}/> |
|
|
|
<FileInput title="بارگزای صفحه اول شناسنامه" id={1} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="w-2/5 mx-4"> |
|
|
|
<div className="w-2/5 mx-4"> |
|
|
|
<FileInput title="بارگزای صفحه اول شناسنامه" id={2}/> |
|
|
|
<FileInput title="بارگزای صفحه اول شناسنامه" id={2} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -227,9 +227,10 @@ const Register = ({ activeLogin }) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="flex pt-10 justify-end"> |
|
|
|
<div className="flex pt-10 justify-end"> |
|
|
|
<div className="w-40"> |
|
|
|
<div className="w-40"> |
|
|
|
<Button borderType='rounded' title='مرحله بعد' onClick={() => |
|
|
|
<Button borderType='rounded' title='مرحله بعد' onClick={() => { |
|
|
|
setSteps(1) |
|
|
|
setSteps(1) |
|
|
|
} /> |
|
|
|
setActiveStep([true, true, false, false]) |
|
|
|
|
|
|
|
}} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -341,15 +342,17 @@ const Register = ({ activeLogin }) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="flex pt-10 justify-end"> |
|
|
|
<div className="flex pt-10 justify-end"> |
|
|
|
<div className="w-40 mx-4"> |
|
|
|
<div className="w-40 mx-4"> |
|
|
|
<Button borderType='rounded' title='بازگشت به مرحله قبل' type='outlined' onClick={() => |
|
|
|
<Button borderType='rounded' title='بازگشت به مرحله قبل' type='outlined' onClick={() => { |
|
|
|
setSteps(0) |
|
|
|
setSteps(0); |
|
|
|
} /> |
|
|
|
setActiveStep([true, false, false, false]) |
|
|
|
|
|
|
|
}} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div className="w-40"> |
|
|
|
<div className="w-40"> |
|
|
|
<Button borderType='rounded' title='مرحله بعد' onClick={() => |
|
|
|
<Button borderType='rounded' title='مرحله بعد' onClick={() => { |
|
|
|
setSteps(2) |
|
|
|
setSteps(2); |
|
|
|
} /> |
|
|
|
setActiveStep([true, true, true, false]) |
|
|
|
|
|
|
|
}} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -384,28 +387,30 @@ const Register = ({ activeLogin }) => { |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="flex items-center px-10 py-6"> |
|
|
|
<div className="flex items-center px-10 py-6"> |
|
|
|
<input type="checkbox" className="w-6 h-6"/> |
|
|
|
<input type="checkbox" className="w-6 h-6" /> |
|
|
|
<label className="mr-4 font-bold text-gray-500"> |
|
|
|
<label className="mr-4 font-bold text-gray-500"> |
|
|
|
اینجانبان |
|
|
|
اینجانبان |
|
|
|
<span className="text-red52 font-bold"> اصغر تقی غلی خوان </span> |
|
|
|
<span className="text-red52 font-bold"> اصغر تقی غلی خوان </span> |
|
|
|
و
|
|
|
|
و |
|
|
|
<span className="text-red52 font-bold"> بتول کلاغ تپه زاده </span> |
|
|
|
<span className="text-red52 font-bold"> بتول کلاغ تپه زاده </span> |
|
|
|
سرپرست های دانش آموز
|
|
|
|
سرپرست های دانش آموز |
|
|
|
<span className="text-red52 font-bold"> امیر سام تقی غلی خوان </span> |
|
|
|
<span className="text-red52 font-bold"> امیر سام تقی غلی خوان </span> |
|
|
|
با قوانین و مقررات موافقت نموده و تمامی موارد به عهده اینجانب میباشد |
|
|
|
با قوانین و مقررات موافقت نموده و تمامی موارد به عهده اینجانب میباشد |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="w-full flex pt-10 justify-end"> |
|
|
|
<div className="w-full flex pt-10 justify-end"> |
|
|
|
<div className="w-40 mx-4"> |
|
|
|
<div className="w-40 mx-4"> |
|
|
|
<Button borderType='rounded' title='بازگشت به مرحله قبل' type='outlined' onClick={() => |
|
|
|
<Button borderType='rounded' title='بازگشت به مرحله قبل' type='outlined' onClick={() => { |
|
|
|
setSteps(1) |
|
|
|
setSteps(1); |
|
|
|
} /> |
|
|
|
setActiveStep([true, true, false, false]) |
|
|
|
|
|
|
|
}} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div className="w-40"> |
|
|
|
<div className="w-40"> |
|
|
|
<Button borderType='rounded' title='مرحله بعد' onClick={() => |
|
|
|
<Button borderType='rounded' title='مرحله بعد' onClick={() => { |
|
|
|
setSteps(3) |
|
|
|
setSteps(3); |
|
|
|
} /> |
|
|
|
setActiveStep([true, true, true, true]) |
|
|
|
|
|
|
|
}} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -423,20 +428,21 @@ const Register = ({ activeLogin }) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="w-full flex pt-10 justify-end"> |
|
|
|
<div className="w-full flex pt-10 justify-end"> |
|
|
|
<div className="w-40 mx-4"> |
|
|
|
<div className="w-40 mx-4"> |
|
|
|
<Button borderType='rounded' title='بازگشت به مرحله قبل' type='outlined' onClick={() => |
|
|
|
<Button borderType='rounded' title='بازگشت به مرحله قبل' type='outlined' onClick={() => { |
|
|
|
setSteps(1) |
|
|
|
setSteps(2) |
|
|
|
} /> |
|
|
|
setActiveStep([true, true, true, false]) |
|
|
|
</div> |
|
|
|
}} /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div className="w-40"> |
|
|
|
<div className="w-40"> |
|
|
|
<Button borderType='rounded' title='ورود' to='/dashboard' onClick={() => |
|
|
|
<Button borderType='rounded' title='ورود' to='/dashboard' onClick={() => |
|
|
|
activeLogin() |
|
|
|
activeLogin() |
|
|
|
} /> |
|
|
|
} /> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</> |
|
|
|
</> |
|
|
|