From 49588f22f7d20193f899226107c9e323a82c6951 Mon Sep 17 00:00:00 2001 From: jelemux Date: Thu, 19 Nov 2020 07:37:20 +0100 Subject: added telephone, but causes problems --- src/util.rs | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/util.rs (limited to 'src/util.rs') diff --git a/src/util.rs b/src/util.rs new file mode 100644 index 0000000..3d8f231 --- /dev/null +++ b/src/util.rs @@ -0,0 +1,39 @@ +use yew::prelude::*; + +pub fn text_field_input(label: &str, id: &str, placeholder: Option<&str>, oninput: Callback) -> Html { + html!{ +
+ +
+ +
+
+ } +} + +pub fn checkbox_field_input(label: &str, id: &str, checked: bool, onclick: Callback) -> Html { + html!{ +
+ +
+ } +} \ No newline at end of file -- cgit v1.2.3