forked from science-ation/science-ation
- Make the age pulldown selection based on ages, not grades
This commit is contained in:
parent
ff76c06e17
commit
668565919f
@ -319,8 +319,8 @@ if($config['participant_student_personal']=="yes")
|
||||
//the year selector should be based on the min/max grades possible
|
||||
//assume min age of 3 for grade=0 (kindergarden)
|
||||
//assume max age of 18 for grade=12
|
||||
$minyearselect=$config['FAIRYEAR'] - 6 - $config['maxgrade'];
|
||||
$maxyearselect=$config['FAIRYEAR'] - 3 - $config['mingrade'];
|
||||
$minyearselect=$config['FAIRYEAR'] - $config['maxage'];
|
||||
$maxyearselect=$config['FAIRYEAR'] - $config['minage'];
|
||||
emit_year_selector("year[$x]",$year,$minyearselect,$maxyearselect);
|
||||
echo "</td><td>".REQUIREDFIELD."</td></tr></table>\n";
|
||||
echo "</td>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user