feat: update fields

This commit is contained in:
alphafetus committed 2026-03-06 00:58:25 -05:00
1 parent 97707a9b80
commit 142a60bc7c
1 file changed
+15 -2
+15 -2
View File
@@ -16,7 +16,6 @@ pub fn StudentDemographicsPage() -> impl IntoView {
<div class="flex flex-1" /> <div class="flex flex-1" />
<div class="flex flex-col flex-2 mt-6"> <div class="flex flex-col flex-2 mt-6">
<ValidatedForm title="Student Demographic Form" on_submit=controller.submit_action> <ValidatedForm title="Student Demographic Form" on_submit=controller.submit_action>
// Inputs here.
<OutlinedTextField <OutlinedTextField
label="First Name:" label="First Name:"
data_map=controller.data_map data_map=controller.data_map
@@ -33,7 +32,21 @@ pub fn StudentDemographicsPage() -> impl IntoView {
input_type=TextFieldType::Text input_type=TextFieldType::Text
required=true required=true
/> />
// There must be a date of birth selection field here. <OutlinedTextField
label="Date of Birth:"
data_map=controller.data_map
data_member="dob"
placeholder="MM/DD/YYYY"
input_type=TextFieldType::Text
required=true
/>
<Select
label="Gender:"
data_map=controller.data_map
data_member="dob"
required=true
value_list=vec!["Male".to_string(), "Female".to_string(), "Prefer not to answer/Other".to_string()]
/>
<OutlinedTextField <OutlinedTextField
label="Student ID Number:" label="Student ID Number:"
data_map=controller.data_map data_map=controller.data_map