Profile edit (WIP)
This commit is contained in:
parent
405aa68526
commit
327b2d0a5b
15 changed files with 174 additions and 46 deletions
|
|
@ -1,6 +1,10 @@
|
|||
use wasm_bindgen::prelude::*;
|
||||
use web_sys::Document;
|
||||
use web_sys::{Document, HtmlLabelElement};
|
||||
|
||||
pub fn edit_recipe(doc: &Document) {
|
||||
pub fn recipe_edit(doc: &Document) {
|
||||
let title_input = doc.get_element_by_id("title_field").unwrap();
|
||||
}
|
||||
|
||||
pub fn user_edit(doc: &Document) {
|
||||
// let name_input = doc.get_element_by_id("name_field").unwrap().dyn_ref::<>()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,11 @@ pub fn main() -> Result<(), JsValue> {
|
|||
let id = id.parse::<i64>().unwrap(); // TODO: remove unwrap.
|
||||
console_log!("recipe edit ID: {}", id);
|
||||
|
||||
handles::edit_recipe(&document);
|
||||
handles::recipe_edit(&document);
|
||||
}
|
||||
|
||||
["user", "edit"] => {
|
||||
handles::user_edit(&document);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue