~singpolyma/sgx-jmp

ref: 8dd92b96258d14d431e9966d0534631c7fdc0214 sgx-jmp/forms/admin_set_trust_level.rb -rw-r--r-- 257 bytes
8dd92b96Stephen Paul Weber Merge branch 'admin-actions' 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
form!
instructions "Set Trust Level"

field(
	var: "new_trust_level",
	type: "list-single",
	label: "Trust Level",
	value: @manual || "automatic",
	options: @levels.map { |lvl| { label: lvl, value: lvl } } +
		[{ label: "Automatic", value: "automatic" }]
)