summaryrefslogtreecommitdiff
path: root/app/views/config_snom/_snom_phone_directory.xml.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/config_snom/_snom_phone_directory.xml.haml')
-rw-r--r--app/views/config_snom/_snom_phone_directory.xml.haml19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/config_snom/_snom_phone_directory.xml.haml b/app/views/config_snom/_snom_phone_directory.xml.haml
new file mode 100644
index 0000000..698f2e5
--- /dev/null
+++ b/app/views/config_snom/_snom_phone_directory.xml.haml
@@ -0,0 +1,19 @@
+!!! XML
+%SnomIPPhoneDirectory{:speedselect => 'off'}
+ %Title= @phone_xml_object[:title]
+ %Prompt= @phone_xml_object[:prompt]
+ - @phone_xml_object[:entries].each do |entry|
+ %DirectoryEntry{:sel => entry[:selected].to_s}
+ %Name= entry[:text]
+ %Telephone= entry[:number]
+
+ - if @phone_xml_object[:softkeys]
+ - @phone_xml_object[:softkeys].each do |softkey|
+ %SoftKeyItem
+ %Name= softkey[:name]
+ - if ! softkey[:label].blank?
+ %Label= softkey[:label]
+ - if ! softkey[:url].blank?
+ %URL= softkey[:url]
+ - if ! softkey[:softkey].blank?
+ %URL= softkey[:softkey]