Anzeigen der Schülernamen

This commit is contained in:
2023-02-21 09:05:29 +01:00
parent daec6f092a
commit 6b7415f0dd
6 changed files with 10 additions and 8 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ impl Component for App {
nutzer: None,
tmp_nutzer: Nutzer {
name: "".into(),
schüler: "".into(),
schueler: "".into(),
email: "".into(),
},
successfully_saved: None,
@@ -112,7 +112,7 @@ impl Component for App {
true
}
Msg::UpdateSchüler(s) => {
self.tmp_nutzer.schüler = s;
self.tmp_nutzer.schueler = s;
true
}
Msg::UpdateEmail(s) => {
@@ -204,7 +204,7 @@ impl App {
<div class="field">
<label class="label">{"Alle betreffenden SchülerInnen"}</label>
<p class="control has-icons-left has-icons-right">
<input class="input" type="email" placeholder="SchülerInnen" value={self.tmp_nutzer.schüler.to_string()}
<input class="input" type="email" placeholder="SchülerInnen" value={self.tmp_nutzer.schueler.to_string()}
oninput={ctx.link().batch_callback(|event:InputEvent| {
event.target_dyn_into::<HtmlInputElement>().map(|input|Msg::UpdateSchüler(input.value()))
})}/>