~singpolyma/sgx-jmp

ref: c7c48663714307e3598dc14848e539fb8672b0b7 sgx-jmp/forms/admin_info.rb -rw-r--r-- 794 bytes
c7c48663Christopher Vollick Customer Info Forms and More Info 5 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
result!
title "Customer Info"

render "customer_info_partial", info: @admin_info.info

render @admin_info.info.plan_info.admin_template

field(
	var: "jid",
	label: "JID",
	value: @admin_info.jid.unproxied.to_s
)

field(
	var: "cheo_jid",
	label: "Cheo JID",
	value: @admin_info.jid.to_s
)

field(
	var: "customer_id",
	label: "Customer ID",
	value: @admin_info.customer_id
)

if @admin_info.fwd.uri
	field(
		var: "fwd",
		label: "Fwd",
		value: @admin_info.fwd.uri
	)

	field(
		var: "fwd_timeout",
		label: "Fwd Timeout",
		value: @admin_info.fwd.timeout.to_s
	)
end

field(
	var: "api",
	label: "API",
	value: @admin_info.api.to_s
)

if @admin_info.info.tel
	field(
		var: "link",
		label: "Link",
		type: "jid-single",
		value: "#{@admin_info.info.tel}@#{CONFIG[:upstream_domain]}"
	)
end