set_port_out_pin.rb

 1form!
 2title "Set port-out PIN"
 3instructions(
 4	"Your port-out PIN must be between 4 and 10 alphanumeric characters. " \
 5	"It'll be required when porting your number to another carrier." \
 6)
 7
 8field(
 9	var: "pin",
10	type: "text-private",
11	label: "Port-out PIN",
12	required: true,
13	description: "Enter 4-10 alphanumeric characters",
14	regex: /\A[\w\d]{4,10}\Z/
15)
16
17field(
18	var: "confirm_pin",
19	type: "text-private",
20	label: "Confirm PIN",
21	required: true,
22	description: "Re-enter the same PIN to confirm",
23	regex: /\A[\w\d]{4,10}\Z/
24)