diploma
This commit is contained in:
@@ -846,15 +846,15 @@ export default function ProfilePage() {
|
|||||||
type="number"
|
type="number"
|
||||||
step="0.01"
|
step="0.01"
|
||||||
min="0"
|
min="0"
|
||||||
max="10"
|
max="100"
|
||||||
placeholder="0.00"
|
placeholder="0.00"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Input id="ssc" value={`${student.ssc}/10`} readOnly />
|
<Input id="ssc" value={`${student.ssc}/100`} readOnly />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Label htmlFor="hsc">HSC Score</Label>
|
<Label htmlFor="hsc">{editData.isDiploma || student.isDiploma ? 'Diploma Score' : 'HSC Score'}</Label>
|
||||||
{editingSection === 'academic' ? (
|
{editingSection === 'academic' ? (
|
||||||
<Input
|
<Input
|
||||||
id="hsc"
|
id="hsc"
|
||||||
@@ -863,11 +863,11 @@ export default function ProfilePage() {
|
|||||||
type="number"
|
type="number"
|
||||||
step="0.01"
|
step="0.01"
|
||||||
min="0"
|
min="0"
|
||||||
max="10"
|
max="100"
|
||||||
placeholder="0.00"
|
placeholder="0.00"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Input id="hsc" value={`${student.hsc}/10`} readOnly />
|
<Input id="hsc" value={`${student.hsc}/100`} readOnly />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -136,11 +136,11 @@ export default function AcademicDetailsStep({ form }: { form: any }) {
|
|||||||
name="hsc"
|
name="hsc"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>HSC % *</FormLabel>
|
<FormLabel>{form.watch('isDiploma') ? 'Diploma % *' : 'HSC % *'}</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
type="number"
|
type="number"
|
||||||
placeholder="12th percentage"
|
placeholder={form.watch('isDiploma') ? 'Diploma percentage' : '12th percentage'}
|
||||||
{...field}
|
{...field}
|
||||||
onChange={(e) => field.onChange(parseFloat(e.target.value) || 0)}
|
onChange={(e) => field.onChange(parseFloat(e.target.value) || 0)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user