summaryrefslogtreecommitdiff
path: root/app/views/config_snom/_snom_phone_menu.xml.haml
blob: de016c0057f3b8098a8edf2d078cbfdca27b53bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
!!! XML
%SnomIPPhoneMenu{:speedselect => 'off'}
  %Title= @phone_xml_object[:title]
  - @phone_xml_object[:entries].each do |entry|
    %MenuItem{:sel => entry[:selected].to_s}
      %Name= entry[:text]
      %URL= entry[:url]

  - if @phone_xml_object[:softkeys]
    - @phone_xml_object[:softkeys].each do |softkey|
      %SoftKeyItem
        %Name=  softkey[:name]
        %Label= softkey[:label]
        - if ! softkey[:url].blank?
          %URL= softkey[:url]
        - if ! softkey[:softkey].blank?
          %URL= softkey[:softkey]