summaryrefslogtreecommitdiff
path: root/app/views/config_snom/_snom_phone_menu.xml.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:01:45 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:01:45 +0100
commitb80bd744ad873f6fc43018bc4bfb90677de167bd (patch)
tree072c4b0e33d442528555b82c415f5e7a1712b2b0 /app/views/config_snom/_snom_phone_menu.xml.haml
parent3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff)
Start of GS5.
Diffstat (limited to 'app/views/config_snom/_snom_phone_menu.xml.haml')
-rw-r--r--app/views/config_snom/_snom_phone_menu.xml.haml17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/config_snom/_snom_phone_menu.xml.haml b/app/views/config_snom/_snom_phone_menu.xml.haml
new file mode 100644
index 0000000..de016c0
--- /dev/null
+++ b/app/views/config_snom/_snom_phone_menu.xml.haml
@@ -0,0 +1,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]