~singpolyma/sgx-jmp

sgx-jmp/forms/tn_list.rb -rw-r--r-- 305 bytes
c2b986f8Stephen Paul Weber Fix test broken by hotfix 12 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
form!
title "Choose Telephone Number"
instructions "Please choose one of the following numbers"
field(
	var: "tel",
	required: true,
	type: "list-single",
	label: "Telephone Number",
	options: @tns.map(&:option)
)

xml.set(xmlns: "http://jabber.org/protocol/rsm") do |xml|
	xml.count @tns.length.to_s
end