From: Andrea Zagli Date: Mon, 6 Feb 2023 15:06:54 +0000 (+0100) Subject: Rendered html check element. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=8f799088fb67a14dfc1cf398d95cedceaecbd3fe;p=rust%2Fzakform Rendered html check element. --- diff --git a/src/lib.rs b/src/lib.rs index 05474f4..2a9dec4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,6 +7,7 @@ pub mod filters; pub enum FType { Text, TextArea, + Check, Select, } @@ -64,6 +65,13 @@ impl Field { {% if help %}
{{ help }}
{% endif %} {% if label %}{% endif %}"#); + }, + FType::Check => { + f.tmpl.add_raw_template("field", r#"
+ + {% if label %}{% endif %} + {% if help %}
{{ help }}
{% endif %} +
"#); }, FType::Select => { f.tmpl.add_raw_template("field", r#"{% if label %}