form!
title "Activate JMP"

instructions <<~I
	You've selected #{@tel} as your JMP number.
	To activate your account, you can either deposit $#{'%.2f' % (CONFIG[:activation_amount] + @tel.price)} to your balance or enter your referral code if you have one.
	(If you'd like to pay in another cryptocurrency, currently we recommend using a service like simpleswap.io, morphtoken.com, changenow.io, or godex.io.)
I

field(
	var: "activation_method",
	type: "list-single",
	label: "Activate using",
	required: true,
	options: [
		{
			value: "credit_card",
			label: "Credit Card"
		},
		{
			value: "bitcoin",
			label: "Bitcoin"
		},
		{
			value: "bch",
			label: "Bitcoin Cash"
		},
		{
			value: "code",
			label: "Referral Code"
		},
		{
			value: "mail",
			label: "Mail or Interac e-Transfer"
		}
	]
)

instance_eval File.read("#{__dir__}/plan_name.rb")

field(
	var: "code",
	type: "text-single",
	label: "Optional referral code"
)
