]> saetta.ns0.it Git - rust/zakform/commitdiff
c2rs: added submit/button field.
authorAndrea Zagli <azagli@libero.it>
Sun, 24 Sep 2023 07:48:15 +0000 (09:48 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 24 Sep 2023 07:48:15 +0000 (09:48 +0200)
src/bin/c2rs.rs

index 29557fd30fdc2f27b08bd7c2e591b7c3ca232b7e..6130154cd9612461e2db3a501b5234423db7cd1b 100644 (file)
@@ -143,6 +143,7 @@ fn main() {
                        "zak_form_cgi_form_element_text_area" => { println!(r#"let mut fi = zakform::fields::FieldTextArea::new("{}")"#, e.id); },
                        "zak_form_cgi_form_element_radio" => { println!(r#"let mut fi = zakform::fields::FieldRadio::new("{}")"#, e.id); },
                        "zak_form_cgi_form_element_select" => { println!(r#"let mut fi = zakform::fields::FieldSelect::new("{}")"#, e.id); },
+                       "zak_form_cgi_form_element_submit" => { println!(r#"let mut fi = zakform::fields::FieldButton::new("{}")"#, e.id); },
                        _ => { continue; },
                };