form!
title "Setup Snikket Instance"

instructions(
	"Phone number #{@tel} has been activated. " \
	"Now you will need a Jabber ID to associate with your new JMP account. " \
	"JMP has partnered with Snikket CIC to provide you with your very own " \
	"Snikket instance that will provide Jabber service to you and anyone you " \
	"invite.\n\n" \
	"A Jabber ID is kind of like an email address, and looks similar too. " \
	"People who contact you using your Jabber ID instead of your phone number " \
	"will get additional features, such as video calling and end-to-end " \
	"encryption.\n\n" \
	"You will be prompted to choose a username after your instance is ready."
)

field(
	label: "Choose a unique name for your Snikket instance",
	var: "subdomain",
	suffix: ".snikket.chat",
	description: @error ||
		"Your Jabber ID will be of the form username@instance-name.snikket.chat"
)

field(
	label: "Action",
	type: "list-single",
	var: "http://jabber.org/protocol/commands#actions",
	options: [
		{ label: "Next", value: "next" },
		{ label: "Use Your Own Domain Name", value: "custom_domain" }
	]
)
