From a9eda6207975e82c2f96219f0955cc2ce3950628 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 4 Mar 2023 15:23:45 +0100 Subject: [PATCH] Field: to_load/save default to true. --- src/fields.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/fields.rs b/src/fields.rs index 4e79e67..251362c 100644 --- a/src/fields.rs +++ b/src/fields.rs @@ -164,6 +164,8 @@ impl FieldText { f.field.name = String::from(name); f.field.label = String::from(name); + f.field.to_load = true; + f.field.to_save = true; match f.field.tmpl.add_raw_template("field", r#"{% if label %}
{% endif %} @@ -299,6 +301,8 @@ impl FieldTextArea { f.field.name = String::from(name); f.field.label = String::from(name); + f.field.to_load = true; + f.field.to_save = true; f.rows = 5; @@ -449,6 +453,8 @@ impl FieldRadio { f.field.name = String::from(name); f.field.label = String::from(name); + f.field.to_load = true; + f.field.to_save = true; match f.field.tmpl.add_raw_template("field", r#"{% if label %}

{% endif %} @@ -616,6 +622,8 @@ impl FieldSelect { f.field.name = String::from(name); f.field.label = String::from(name); + f.field.to_load = true; + f.field.to_save = true; match f.field.tmpl.add_raw_template("field", r#"{% if label %}

{% endif %} @@ -747,6 +755,8 @@ impl FieldCheck { f.field.name = String::from(name); f.field.label = String::from(name); + f.field.to_load = true; + f.field.to_save = true; match f.field.tmpl.add_raw_template("field", r#"
-- 2.49.0