~singpolyma/sgx-jmp

ref: 8dd92b96258d14d431e9966d0534631c7fdc0214 sgx-jmp/forms/admin_menu.rb -rw-r--r-- 642 bytes
8dd92b96Stephen Paul Weber Merge branch 'admin-actions' 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
form!
title "Menu"

if @notice
	field(
		type: "fixed",
		value: @notice
	)
end

field(
	var: "action",
	type: "list-single",
	open: true,
	label: "Pick an action",
	description: "or put a new customer info",
	options: [
		{ value: "info", label: "Customer Info" },
		{ value: "financial", label: "Customer Billing Information" },
		{ value: "bill_plan", label: "Bill Customer" },
		{ value: "cancel_account", label: "Cancel Customer" },
		{ value: "undo", label: "Undo" },
		{ value: "reset_declines", label: "Reset Declines" },
		{ value: "set_trust_level", label: "Set Trust Level" },
		{ value: "add_invites", label: "Add Invites" }
	]
)