fix: use signals for select dropdown data

This commit is contained in:
alphafetus committed 2026-02-02 14:07:15 -05:00
1 parent bb5dfa2563
commit f0f22bb68b
6 files changed
+17 -16

No files matched your search

+2 -14
View File
@@ -12,7 +12,7 @@ use crate::common::ExpandableInfo;
use crate::pages::UnauthenticatedPage;
use crate::components::{
ActionButton, CheckboxList, Loading, MultiEntry, OutlinedTextField, Panel, RadioList, Row,
Select, TextFieldType, ValidatedForm
TextFieldType, ValidatedForm
};
use crate::input;
use leptos::leptos_dom::logging::console_log;
@@ -329,21 +329,9 @@ pub fn HomePage() -> impl IntoView {
required=true
/>
</Row>
<Row>
<Select
label="Gender:"
value_list=vec!["Male", "Female", "Prefer not to answer"]
.into_iter()
.map(|s| s.to_owned())
.collect()
disabled=elements_disabled
data_member="gender"
data_map=form_data
required=true
/>
</Row>
<Row>
<MultiEntry
label="Testing community involvement:"
data_map=form_data
data_member="community_involvement"
schema=vec![
+2
View File
@@ -12,6 +12,8 @@ pub fn StudentAthleticsPage() -> impl IntoView {
<div class="flex flex-col flex-2 mt-6">
<ValidatedForm title="Athletics Information" on_submit=move || {}>
<MultiEntry
label="Athletics Activities:"
description="Leave blank if not applicable."
data_map=data_map
data_member="athletic_participation"
schema=vec![
@@ -21,6 +21,8 @@ pub fn StudentExtracurricularsPage() -> impl IntoView {
required=true
/>
<MultiEntry
label="Extracurricular Activities:"
description="Leave blank if not applicable."
data_map=data_map
data_member="extracurricular"
schema=vec![
@@ -12,6 +12,8 @@ pub fn StudentWorkExperiencePage() -> impl IntoView {
<div class="flex flex-col flex-2 mt-6">
<ValidatedForm title="Student Work Experience" on_submit=move || {}>
<MultiEntry
label="Work Experience:"
description="Leave blank if not applicable."
data_map=data_map
data_member="extracurricular"
schema=vec![