form!
title "Reachability"

field(
	var: "tel",
	datatype: "html:tel",
	required: true,
	label: "Number to test"
)

field(
	var: "reachability_tel",
	type: "list-single",
	options: CONFIG[:reachability_senders]
		.map { |tel| { label: tel, value: tel } },
	label: "Number to send test prompt to",
	desc: "leave blank to not send a prompt"
)

field(
	var: "type",
	type: "list-single",
	options: [
		{ label: "SMS", value: "sms" },
		{ label: "Voice", value: "voice" }
	],
	label: "Type of test to perform"
)
