summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/config_gigaset/phone_book.xml.haml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/config_gigaset/phone_book.xml.haml b/app/views/config_gigaset/phone_book.xml.haml
new file mode 100644
index 0000000..dc76a5e
--- /dev/null
+++ b/app/views/config_gigaset/phone_book.xml.haml
@@ -0,0 +1,13 @@
+!!! XML
+%list{:response => "get_list", :type => @type, :last => @last, :total => @total, :first => @first}
+ - @phone_book_entries.each do |phone_book_entry|
+ %entry{:id => phone_book_entry.id}
+ %ln= phone_book_entry.last_name
+ %fn= phone_book_entry.first_name
+ - phone_book_entry.phone_numbers.each do |phone_number|
+ - if phone_number.name.to_s.downcase == 'mobile'
+ %mb= phone_number.number
+ - elsif phone_number.name.to_s.downcase == 'fax'
+ %fx= phone_number.number
+ - else
+ %hm= phone_number.number