]> saetta.ns0.it Git - rust/zakform/commitdiff
c2rs: added check field.
authorAndrea Zagli <azagli@libero.it>
Mon, 25 Sep 2023 12:52:43 +0000 (14:52 +0200)
committerAndrea Zagli <azagli@libero.it>
Mon, 25 Sep 2023 12:52:43 +0000 (14:52 +0200)
src/bin/c2rs.rs

index 2cb8da577569858302d675f52361a39164c6d32b..1320b22a6209dd7c1df8bb4f016c229f149ebf49 100644 (file)
@@ -158,6 +158,7 @@ fn main() {
                        "zak_form_cgi_form_element_text_area" => { writeln!(output, r#"let mut fi = zakform::fields::FieldTextArea::new("{}")"#, e.id); },
                        "zak_form_cgi_form_element_radio" => { writeln!(output, r#"let mut fi = zakform::fields::FieldRadio::new("{}")"#, e.id); },
                        "zak_form_cgi_form_element_select" => { writeln!(output, r#"let mut fi = zakform::fields::FieldSelect::new("{}")"#, e.id); },
+                       "zak_form_cgi_form_element_check" => { writeln!(output, r#"let mut fi = zakform::fields::FieldCheck::new("{}")"#, e.id); },
                        "zak_form_cgi_form_element_submit" => { writeln!(output, r#"let mut fi = zakform::fields::FieldButton::new("{}")"#, e.id); },
                        _ => { continue; },
                };