diff --git a/src/build.rs b/src/build.rs index a13dbb7..4588793 100644 --- a/src/build.rs +++ b/src/build.rs @@ -288,7 +288,7 @@ fn text() -> String { "text".to_string() } -const FIELD_TYPES: &[&str] = &["text", "email", "tel", "textarea", "date", "select"]; +const FIELD_TYPES: &[&str] = &["text", "email", "tel", "textarea", "date", "select", "location"]; fn is_id(s: &str) -> bool { !s.is_empty() && s.chars().all(|c| c.is_ascii_lowercase() || c.is_ascii_digit() || c == '_' || c == '-') diff --git a/src/plan.rs b/src/plan.rs index 6f5875b..073a441 100644 --- a/src/plan.rs +++ b/src/plan.rs @@ -102,7 +102,9 @@ needs: # the intake says about them: someone on a phone with gloves # on gets 3, a first enquiry 4 to 6, a firm's paperwork 5 to 6 collects: # the form; name is snake_case ASCII, type one of - # text (default), email, tel, textarea, date, select + # text (default), email, tel, textarea, date, select, location + # (a pin on a map, stored as lat/lon/zoom; optional: true, + # since a map needs a browser that can draw one) - { name: name } - { name: phone, type: tel } - { name: problem, type: textarea }