blob: 65c0df40eb4c0a241ce43c3571e9a2827a7c9a63 (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
- content_for :title, t("sip_accounts.show.page_title")
%table{:class => 'table table-striped'}
%tbody
%tr
%td
%strong= t('sip_accounts.show.caller_name') + ":"
%td
= @sip_account.caller_name
%tr
%td
%strong= t('sip_accounts.show.auth_name') + ":"
%td
= @sip_account.auth_name
%tr
%td
%strong= t('sip_accounts.show.password') + ":"
%td
= @sip_account.password
%tr
%td
%strong= t('sip_accounts.show.call_waiting') + ":"
%td
= @sip_account.call_waiting
%tr
%td
%strong= t('sip_accounts.show.clir') + ":"
%td
= @sip_account.clir
%tr
%td
%strong= t('sip_accounts.show.clip_no_screening') + ":"
%td
= @sip_account.clip_no_screening
%tr
%td
%strong= t('sip_accounts.show.hotdeskable') + ":"
%td
= @sip_account.hotdeskable
%tr
%td
%strong= t('sip_accounts.show.callforward_rules_act_per_sip_account') + ":"
%td
= @sip_account.callforward_rules_act_per_sip_account
- if @sip_account.registration.try(:network_ip) && @sip_account.registration.try(:network_port)
%tr
%td
%strong= t('sip_accounts.show.registration') + ":"
%td
= "#{@sip_account.registration.network_ip}:#{@sip_account.registration.network_port}"
- if @sip_account.registration.try(:expires)
%tr
%td
%strong= t('sip_accounts.show.expires') + ":"
%td
= "#{@sip_account.registration.try(:expires) - Time.now.to_i} s"
= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @sip_account.sip_accountable, :child => @sip_account }
- if @sip_account.phone_numbers.count > 0 || can?(:create, @sip_account.phone_numbers.build)
%h2= t('phone_numbers.index.page_title')
- if @sip_account.phone_numbers.count > 0
= render "phone_numbers/index_core", :phone_numbers => @sip_account.phone_numbers
%br
= render :partial => 'shared/create_link', :locals => { :parent => @sip_account, :child_class => PhoneNumber }
- if @sip_account.softkeys.count > 0 || can?(:create, @sip_account.softkeys.build)
%h2= t("softkeys.index.page_title")
- if @sip_account.softkeys.count > 0
= render "softkeys/index_core", :softkeys => @sip_account.softkeys
%br
= render :partial => 'shared/create_link', :locals => { :parent => @sip_account, :child_class => Softkey }
|