summaryrefslogtreecommitdiff
path: root/app/views/phones/show.html.haml
blob: 97cb1a8fb3e686faa0322d56f9b03b69c8ce41a2 (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
73
74
75
76
77
78
79
- content_for :title, t("phones.show.page_title")

.row
  .span5
    %table{:class => 'table table-striped'}
      %tr
        %td
          %strong= t('phones.show.mac_address') + ":"
        %td
          = @phone.pretty_mac_address
      %tr
        %td
          %strong= t('phones.show.phone_model_id') + ":"
        %td
          = @phone.phone_model
          - if !@phone.phone_model.product_manual_homepage_url.blank?
            (#{link_to t('phones.show.manual'), @phone.phone_model.product_manual_homepage_url})
      - if @phone.hot_deskable == true
        %tr
          %td
            %strong= t('phones.show.hot_deskable') + ":"
          %td
            = @phone.hot_deskable
        %tr
          %td
            %strong= t('phones.show.fallback_sip_account_id') + ":"
          %td
            = @phone.fallback_sip_account

      - if defined? GsParameter.get('NIGHTLY_REBOOT_OF_PHONES') && GsParameter.get('NIGHTLY_REBOOT_OF_PHONES') == true
        %tr
          %td
            %strong= t('phones.show.nightly_reboot') + ":"
          %td
            = @phone.nightly_reboot

      - if !GsParameter.get('PROVISIONING_KEY_LENGTH').nil? && GsParameter.get('PROVISIONING_KEY_LENGTH') > 0
        %tr
          %td
            %strong= t('phones.show.provisioning_key_active') + ":"
          %td
            = @phone.provisioning_key_active

      %tr
        %td
          %strong= t('phones.show.ip_address') + ":"
        %td
          = @phone.ip_address

    = render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @phone.phoneable, :child => @phone }


  .span7
    - if @phone.ip_address.blank? && @phone.phone_model.manufacturer.ieee_name == 'SNOM Technology AG'
      %ul.thumbnails.pull-right
        %li.span4
          %a.thumbnail{:href => "#{image_path('screenshots/set_provisioning_url_snom.png')}"}
            =image_tag('screenshots/set_provisioning_url_snom.png', :alt => "Screenshot Set Provisionierungs-URL Snom WebGUI")

      %p
        Sollten Sie Ihren DHCP-Server noch nicht für das automatische Konfigurieren der SIP-Telefone konfiguriert haben, können Sie manuell in Ihrem Telefon eine Provisionierungs-URL eingeben.
      %p
        Das entsprechende Eingabefeld finden Sie unter
        %br
        Advanced -> Update -> Setting URL
      %p
        Das "{mac}" bitte genau so eingeben, es wird vom Telefon automatisch mit der eigenen MAC-Adresse befüllt:
        %pre
          = "http://#{GemeinschaftSetup.first.sip_domain.host}/settings-{mac}"
      %p
        Danach müssen Sie die Konfiguration abspeichern und das Telefon booten.

.row
  .span12
    %h2= t("phones.sip_accounts.title")
    - if @phone.phone_sip_accounts.count > 0
      = render "phone_sip_accounts/index_core", :phone_sip_accounts => @phone.phone_sip_accounts

    = render :partial => 'shared/create_link', :locals => {:parent => @phone, :child_class => PhoneSipAccount}