updating mt-form and adding mission teacher questions

This commit is contained in:
Chris Cochrun 2024-12-19 14:02:20 -06:00
parent a6cb339e51
commit b305bc5e4a
3 changed files with 19 additions and 2 deletions

View file

@ -32,6 +32,7 @@ struct MtTeacherForm {
attitudes: Text<String>,
#[multipart(rename = "team-challenges")]
challenges: Text<String>,
behavior: Text<String>,
#[multipart(rename = "extra-info")]
extra_info: Text<String>,
}
@ -50,6 +51,7 @@ impl From<&MtTeacherForm> for HashMap<i32, String> {
map.insert(155, form.attitudes.0.clone());
map.insert(156, form.challenges.0.clone());
map.insert(157, form.extra_info.0.clone());
map.insert(177, form.behavior.0.clone());
map
}
}
@ -103,6 +105,10 @@ impl MtTeacherForm {
th { "Teamwork" }
td { (self.challenges.0) }
}
tr {
th { "Behavior in school" }
td { (self.behavior.0) }
}
tr {
th { "Other Relevant Info" }
td { (self.extra_info.0) }
@ -200,6 +206,7 @@ mod test {
negative: Text(String::from("Small")),
attitudes: Text(String::from("Lighthearted")),
challenges: Text(String::from("Willing")),
behavior: Text(String::from("Good")),
extra_info: Text(String::from("Willing to take the ring")),
}
}