1form!
2title "(e)SIM Details"
3
4actions = [
5 { label: "Done", value: "complete" },
6 { label: "Order new Physical SIM", value: "order-sim" },
7 { label: "Order new eSIM", value: "order-esim" }
8]
9
10if @sims.empty?
11 instructions "You have no (e)SIMs."
12else
13 field(
14 var: "iccid",
15 label: "(e)SIMs",
16 type: "fixed",
17 value: @sims.map(&:to_s)
18 )
19 actions.push({ label: "Edit (e)SIM nicknames", value: "edit-nicknames" })
20end
21
22field(
23 var: "http://jabber.org/protocol/commands#actions",
24 label: "Action",
25 type: "list-single",
26 options: actions,
27 value: "complete"
28)