sexuality Added

main
Pedram Keshavarzi 3 years ago
parent 3f68e7fe76
commit 49c804f6af
  1. 40
      src/view/register/index.js

@ -29,6 +29,7 @@ const Register = ({ activeLogin }) => {
familyName: null,
nationalId: null,
birthDate: null,
sex: null,
grade: null,
schoolName: null,
city: null,
@ -49,7 +50,7 @@ const Register = ({ activeLogin }) => {
motherPhoneNumber: null,
motherJobAddress: null,
motherJobPhoneNumber: null,
familyNumber: null,
address: null,
homePhoneNumber: null,
@ -65,6 +66,10 @@ const Register = ({ activeLogin }) => {
title: 'نام خانوادگی',
value: userInfo.familyName
},
{
title: 'جنسیت',
value: userInfo.sex
},
{
title: 'کد ملی',
value: userInfo.nationalId
@ -327,10 +332,13 @@ const Register = ({ activeLogin }) => {
<div className="ml-2">
<Input title="نام" borderType="rounded" gapSize="8" direction='rtl' id={0} />
<Input title="کدملی" borderType="rounded" gapSize="12" id={1} type='number' />
<Input title="جنسیت" borderType="rounded" gapSize="16" id={2} />
</div>
<div className="mr-2">
<Input title="نام خانوادگی" borderType="rounded" id={2} direction='rtl' />
<Input title="تاریخ تولد" borderType="rounded" gapSize="16" id={3} type='number' />
<Input title="نام خانوادگی" borderType="rounded" id={3} direction='rtl' />
<Input title="تاریخ تولد" borderType="rounded" gapSize="16" id={4} type='number' />
</div>
</div>
<div className="w-3/5 flex justify-center">
@ -362,14 +370,15 @@ const Register = ({ activeLogin }) => {
<p className="font-bold text-gray-300 text-sm">اطلاعات هویتی دانش آموز را با دقت تکمیل و عکس مدارک را بارگزاری نمایید</p>
</div>
<div className="flex justify-between items-center">
<Input title="نام مدرسه" borderType="rounded" gapSize="20" direction='rtl' id={4} />
<Input title="نام مدرسه" borderType="rounded" gapSize="20" direction='rtl' id={5} />
<select className="bg-white border border-solid border-gray-200 w-full px-3 rounded text-gray-400 outline-red52 mx-2 h-12 mt-6">
{grades.map((item) => (
<option key={`Grade__${item.id}`}>{item.title}</option>
))}
</select>
<Input title="شهر" borderType="rounded" gapSize="8" direction='rtl' id={5} />
<Input title="منطقه" borderType="rounded" gapSize="12" id={6} type='number' />
<Input title="شهر" borderType="rounded" gapSize="8" direction='rtl' id={6} />
<Input title="منطقه" borderType="rounded" gapSize="12" id={7} type='number' />
<Input title="استان" borderType="rounded" gapSize="12" id={8} type='number' />
</div>
<div className="flex pt-10 justify-end">
@ -388,11 +397,12 @@ const Register = ({ activeLogin }) => {
...prevState,
name: document.getElementById('Login-box-form-item-input-name0').value,
nationalId: document.getElementById('Login-box-form-item-input-name1').value,
familyName: document.getElementById('Login-box-form-item-input-name2').value,
birthDate: document.getElementById('Login-box-form-item-input-name3').value,
schoolName: document.getElementById('Login-box-form-item-input-name4').value,
city: document.getElementById('Login-box-form-item-input-name5').value,
state: document.getElementById('Login-box-form-item-input-name6').value,
sex: document.getElementById('Login-box-form-item-input-name2').value,
familyName: document.getElementById('Login-box-form-item-input-name3').value,
birthDate: document.getElementById('Login-box-form-item-input-name4').value,
schoolName: document.getElementById('Login-box-form-item-input-name5').value,
city: document.getElementById('Login-box-form-item-input-name6').value,
state: document.getElementById('Login-box-form-item-input-name7').value,
@ -638,7 +648,7 @@ const Register = ({ activeLogin }) => {
<div className="flex flex-col border-b border-solid border-gray-300 leading-7 pb-6">
<h1 className="font-bold mb-2 text-lg">مشخصات دانش آموز</h1>
{
finalViewInfo.slice(0,7).map(item => (
finalViewInfo.slice(0,8).map(item => (
<div className="flex items-center">
<h3 className="text-red26 font-bold">{item.title}</h3> : <p className="mr-2 text-red52">{item.value}</p>
</div>
@ -648,7 +658,7 @@ const Register = ({ activeLogin }) => {
<div className="flex flex-col border-b border-solid border-gray-300 leading-7 py-6">
<h1 className="font-bold mb-2 text-lg">مشخصات پدر دانش آموز</h1>
{
finalViewInfo.slice(7,15).map(item => (
finalViewInfo.slice(8,16).map(item => (
<div className="flex items-center">
<h3 className="text-red26 font-bold">{item.title}</h3> : <p className="mr-2 text-red52">{item.value}</p>
</div>
@ -658,7 +668,7 @@ const Register = ({ activeLogin }) => {
<div className="flex flex-col border-b border-solid border-gray-300 leading-7 py-6">
<h1 className="font-bold mb-2 text-lg">مشخصات مادر دانش آموز</h1>
{
finalViewInfo.slice(15,23).map(item => (
finalViewInfo.slice(16,24).map(item => (
<div className="flex items-center">
<h3 className="text-red26 font-bold">{item.title}</h3> : <p className="mr-2 text-red52">{item.value}</p>
</div>
@ -668,7 +678,7 @@ const Register = ({ activeLogin }) => {
<div className="flex flex-col border-b border-solid border-gray-300 leading-7 py-6">
<h1 className="font-bold mb-2 text-lg">مشخصات خانواده دانش آموز</h1>
{
finalViewInfo.slice(23,26).map(item => (
finalViewInfo.slice(24,27).map(item => (
<div className="flex items-center">
<h3 className="text-red26 font-bold">{item.title}</h3> : <p className="mr-2 text-red52">{item.value}</p>
</div>

Loading…
Cancel
Save