form!
title "Activate JMP"

instructions <<~I
	You've selected #{@tel} as your JMP number.
	To activate your account, you can either deposit $#{CONFIG[:activation_amount]} to your balance or enter your referral code if you have one.
	(If you'd like to pay in a cryptocurrency other than Bitcoin, currently we recommend using a service like simpleswap.io, morphtoken.com, changenow.io, or godex.io. Manual payment via Bitcoin Cash is also available if you contact support.)
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: "code",
			label: "Referral Code"
		},
		{
			value: "mail",
			label: "Mail or Interac e-Transfer"
		},
		{
			value: "bch",
			label: "Bitcoin Cash"
		}
	]
)

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

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