form!
title "(e)SIM Details"

actions = [
	{ label: "Done", value: "complete" },
	{ label: "Order new Physical SIM", value: "order-sim" },
	{ label: "Order new eSIM", value: "order-esim" }
]

if @sims.empty?
	instructions "You have no (e)SIMs."
else
	field(
		var: "iccid",
		label: "(e)SIMs",
		type: "fixed",
		value: @sims.map(&:to_s)
	)
	actions.push({ label: "Edit (e)SIM nicknames", value: "edit-nicknames" })
end

field(
	var: "http://jabber.org/protocol/commands#actions",
	label: "Action",
	type: "list-single",
	options: actions,
	value: "complete"
)
