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 %}<div class="mb-3">
<label for="{{ name }}" class="form-label">{{ label }}</label>{% endif %}
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;
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 %}<div class="mb-3">
<label for="{{ name }}" class="form-label">{{ label }}</label><br/>{% endif %}
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 %}<div class="mb-3">
<label for="{{ name }}" class="form-label">{{ label }}</label><br/>{% endif %}
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#"<div class="form-check">
<input type="checkbox" class="form-check-input{% if help %} is-invalid{% endif %}" name="{{ name }}" id="{{ name }}" {% if value == "1" or value == "on" %}checked{% endif %}/>