diff options
author | Peter Kozak <spag@golwen.net> | 2013-12-11 08:43:17 +0000 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-12-11 08:43:17 +0000 |
commit | a7a73c14874fa97808313853eea3a41a24d0bffa (patch) | |
tree | 568226b7d9790a9180bf3bc91f0250e8f3ae5a82 /app/views/config_gigaset/phone_book.xml.haml | |
parent | 8d2f3dc9e2ff04906a6870f3d710c316faefdf03 (diff) |
Gigaset phone book view added
Diffstat (limited to 'app/views/config_gigaset/phone_book.xml.haml')
-rw-r--r-- | app/views/config_gigaset/phone_book.xml.haml | 13 |
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 |