Anzeigen der Schülernamen
This commit is contained in:
@@ -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()))
|
||||
})}/>
|
||||
|
||||
Reference in New Issue
Block a user