writeln!(output, r#"fi.set_value("{}");"#, e.default_value);
}
+ match e.dbtype.as_str() {
+ "text" => { },
+ "integer" => { writeln!(output, "fi.set_db_type(zakform::fields::FieldDbType::Integer);"); },
+ "float" => { writeln!(output, "fi.set_db_type(zakform::fields::FieldDbType::Float);"); },
+ "date" => { writeln!(output, "fi.set_db_type(zakform::fields::FieldDbType::Date);"); },
+ "datetime" => { writeln!(output, "fi.set_db_type(zakform::fields::FieldDbType::DateTime);"); },
+ _ => { },
+ }
+
if e.max_length > 0 {
writeln!(output, "fi.set_maxlen({});", e.max_length);
}