updating mt-form and adding mission teacher questions
This commit is contained in:
parent
a6cb339e51
commit
b305bc5e4a
|
@ -254,8 +254,9 @@
|
|||
|
||||
<label class="basis-full mt-8 mx-2" for="trip">Please select the trip that you'd prefer to go on. We reserve the right to move you to another trip if we need to. If you cannot go on a trip for sure, please tell us why in the next question.</label>
|
||||
<select id="trip" name="trip" class="form-select {{ $formClasses }} basis-full items-center mb-8">
|
||||
<option value="New Mexico">New Mexico</option>
|
||||
<option value="Mexico">Mexico</option>
|
||||
<option value="SPLASH">SPLASH</option>
|
||||
<option value="Tulsa">Tulsa, Oklahoma</option>
|
||||
<option value="Cary">Cary Christian Center</option>
|
||||
</select>
|
||||
<!-- <div class="flex-auto basis-1/3">
|
||||
<label for="trip-2" class="basis-1/2">Mexico</label>
|
||||
|
|
|
@ -94,6 +94,15 @@
|
|||
class="form-input w-full h-64 {{ $formClasses }}"
|
||||
placeholder=""></textarea>
|
||||
</div>
|
||||
<div class="basis-full mt-10">
|
||||
<label for="behavior" class="p-4">
|
||||
How do you see this student's behavior during schoolwide activities?
|
||||
</label>
|
||||
<br/>
|
||||
<textarea id="team-challenges" name="team-challenges"
|
||||
class="form-input w-full h-64 {{ $formClasses }}"
|
||||
placeholder=""></textarea>
|
||||
</div>
|
||||
<div class="basis-full mt-10">
|
||||
<label for="extra-info" class="p-4">
|
||||
What else would you like to tell us about this student that might be relevant as we consider them for a mission trip?
|
||||
|
|
|
@ -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")),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue