~singpolyma/sgx-jmp

d1899ac2a5cbd18844c667db5b513ca7f8491561 — Stephen Paul Weber 8 months ago fb89e1a
Better telephone number search form
1 files changed, 13 insertions(+), 4 deletions(-)

M forms/tn_search.rb
M forms/tn_search.rb => forms/tn_search.rb +13 -4
@@ 1,15 1,24 @@
form!
title "Search Telephone Numbers"
instructions @error if @error

if @error
	instructions @error
else
	instructions(
		"You can search for a telephone number you like, for example by " \
		"an area code (like 810) or a state code (like MI)."
	)
end

field(
	var: "q",
	required: true,
	type: "text-single",
	label: "Search Telephone Numbers",
	description:
		"Enter one of: Area code; six or seven digit " \
		"number prefix; zip code; state/province code; " \
		"city, state/province code; or indicate a vanity pattern with ~"
		"Enter one of: area code; zip or postal code; state or provice code; " \
		"six or seven digit number prefix; city, state/province code; " \
		"or indicate a vanity pattern with ~"
)

xml.set(xmlns: "http://jabber.org/protocol/rsm")