feat(student): added parents field in signup

This commit is contained in:
Unchanted
2025-09-02 16:27:21 +05:30
parent 6bcc5ee434
commit 051d68f565
6 changed files with 345 additions and 88 deletions

View File

@@ -529,6 +529,74 @@ export default function ProfilePage() {
<Input id="mothersName" value={student.mothersName || ''} readOnly />
)}
</div>
<div>
<Label htmlFor="mothersEmail">Mother's Email</Label>
{editingSection === 'personal' ? (
<Input
id="mothersEmail"
type="email"
value={editData.mothersEmail || student.mothersEmail || ''}
onChange={(e) => handleInputChange('mothersEmail', e.target.value)}
placeholder="mother@example.com"
/>
) : (
<Input id="mothersEmail" value={student.mothersEmail || ''} readOnly />
)}
</div>
<div>
<Label htmlFor="mothersPhone">Mother's Phone</Label>
{editingSection === 'personal' ? (
<Input
id="mothersPhone"
type="tel"
value={editData.mothersPhone || student.mothersPhone || ''}
onChange={(e) => handleInputChange('mothersPhone', e.target.value)}
placeholder="10-digit number"
/>
) : (
<Input id="mothersPhone" value={student.mothersPhone || ''} readOnly />
)}
</div>
<div>
<Label htmlFor="fathersName">Father's Name</Label>
{editingSection === 'personal' ? (
<Input
id="fathersName"
value={editData.fathersName || student.fathersName || ''}
onChange={(e) => handleInputChange('fathersName', e.target.value)}
/>
) : (
<Input id="fathersName" value={student.fathersName || ''} readOnly />
)}
</div>
<div>
<Label htmlFor="fathersEmail">Father's Email</Label>
{editingSection === 'personal' ? (
<Input
id="fathersEmail"
type="email"
value={editData.fathersEmail || student.fathersEmail || ''}
onChange={(e) => handleInputChange('fathersEmail', e.target.value)}
placeholder="father@example.com"
/>
) : (
<Input id="fathersEmail" value={student.fathersEmail || ''} readOnly />
)}
</div>
<div>
<Label htmlFor="fathersPhone">Father's Phone</Label>
{editingSection === 'personal' ? (
<Input
id="fathersPhone"
type="tel"
value={editData.fathersPhone || student.fathersPhone || ''}
onChange={(e) => handleInputChange('fathersPhone', e.target.value)}
placeholder="10-digit number"
/>
) : (
<Input id="fathersPhone" value={student.fathersPhone || ''} readOnly />
)}
</div>
<div>
<Label htmlFor="personalGmail">Personal Email</Label>
{editingSection === 'personal' ? (