summaryrefslogtreecommitdiff
path: root/app/views/config_polycom
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/config_polycom')
-rw-r--r--app/views/config_polycom/_call_history.xml.haml18
-rw-r--r--app/views/config_polycom/_call_history_menu.xml.haml13
-rw-r--r--app/views/config_polycom/_phone_book.xml.haml18
-rw-r--r--app/views/config_polycom/config_files.xml.builder12
-rw-r--r--app/views/config_polycom/idle_screen.xml.haml7
-rw-r--r--app/views/config_polycom/settings.xml.erb8
-rw-r--r--app/views/config_polycom/settings_directory.xml.haml16
7 files changed, 92 insertions, 0 deletions
diff --git a/app/views/config_polycom/_call_history.xml.haml b/app/views/config_polycom/_call_history.xml.haml
new file mode 100644
index 0000000..7d23edd
--- /dev/null
+++ b/app/views/config_polycom/_call_history.xml.haml
@@ -0,0 +1,18 @@
+!!! XML
+%html
+ %head
+ %title= @phone_xml_object[:title]
+ %body
+ %table{ :border => 0 }
+ %tbody
+ - @phone_xml_object[:entries].each do |entry|
+ %tr
+ %td= entry[:date]
+ %td= entry[:text]
+ %td
+ %a{:href => entry[:url]}= entry[:number]
+
+ %softkey{ :index => 1, :label => 'Home', :action => 'SoftKey:Home' }
+ %softkey{ :index => 2, :label => 'Refresh', :action => 'SoftKey:Refresh' }
+ %softkey{ :index => 4, :label => 'Exit', :action => 'SoftKey:Exit' }
+ %softkey{ :index => 3, :label => 'Back', :action => 'SoftKey:Back' }
diff --git a/app/views/config_polycom/_call_history_menu.xml.haml b/app/views/config_polycom/_call_history_menu.xml.haml
new file mode 100644
index 0000000..6e56f37
--- /dev/null
+++ b/app/views/config_polycom/_call_history_menu.xml.haml
@@ -0,0 +1,13 @@
+!!! XML
+%html
+ %head
+ %title= @phone_xml_object[:title]
+ %body
+ - @phone_xml_object[:entries].each do |entry|
+ %br
+ %a{ :href => entry[:url]}= entry[:text]
+
+ %softkey{ :index => 1, :label => 'Home', :action => 'SoftKey:Home' }
+ %softkey{ :index => 2, :label => 'Refresh', :action => 'SoftKey:Refresh' }
+ %softkey{ :index => 4, :label => 'Exit', :action => 'SoftKey:Exit' }
+ %softkey{ :index => 3, :label => 'Back', :action => 'SoftKey:Back' }
diff --git a/app/views/config_polycom/_phone_book.xml.haml b/app/views/config_polycom/_phone_book.xml.haml
new file mode 100644
index 0000000..1066695
--- /dev/null
+++ b/app/views/config_polycom/_phone_book.xml.haml
@@ -0,0 +1,18 @@
+!!! XML
+%html
+ %head
+ %title= @phone_xml_object[:title]
+ %body
+ %table{ :border => 0 }
+ %tbody
+ - @phone_xml_object[:entries].each do |entry|
+ %tr
+ %td= entry[:text]
+ %td
+ = "#{entry[:type][0]}: "
+ %a{:href => entry[:url]}= entry[:number]
+
+ %softkey{ :index => 1, :label => 'Home', :action => 'SoftKey:Home' }
+ %softkey{ :index => 2, :label => 'Refresh', :action => 'SoftKey:Refresh' }
+ %softkey{ :index => 4, :label => 'Exit', :action => 'SoftKey:Exit' }
+ %softkey{ :index => 3, :label => 'Back', :action => 'SoftKey:Back' }
diff --git a/app/views/config_polycom/config_files.xml.builder b/app/views/config_polycom/config_files.xml.builder
new file mode 100644
index 0000000..50819ff
--- /dev/null
+++ b/app/views/config_polycom/config_files.xml.builder
@@ -0,0 +1,12 @@
+xml.instruct!
+
+xml.tag!('APPLICATION',
+ 'APP_FILE_PATH' => 'sip.ld',
+ 'CONFIG_FILES' => "settings-#{@mac_address}.cfg",
+ 'MISC_FILES' => '',
+ 'LOG_FILE_DIRECTORY' => '',
+ 'OVERRIDES_DIRECTORY' => '',
+ 'CONTACTS_DIRECTORY' => '',
+ 'LICENSE_DIRECTORY' => '',
+ 'USER_PROFILES_DIRECTORY' => '',
+ 'CALL_LISTS_DIRECTORY' => '')
diff --git a/app/views/config_polycom/idle_screen.xml.haml b/app/views/config_polycom/idle_screen.xml.haml
new file mode 100644
index 0000000..fa52c4f
--- /dev/null
+++ b/app/views/config_polycom/idle_screen.xml.haml
@@ -0,0 +1,7 @@
+!!! XML
+%html
+ %head
+ %title= @sip_account.caller_name
+ %body
+ - @sip_account.phone_numbers.each do |number|
+ %br= number.number
diff --git a/app/views/config_polycom/settings.xml.erb b/app/views/config_polycom/settings.xml.erb
new file mode 100644
index 0000000..ea9d325
--- /dev/null
+++ b/app/views/config_polycom/settings.xml.erb
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<PHONE_CONFIG>
+ <ALL
+ <% @settings.each do |key, value| %>
+ <%= key %>="<%= value %>"
+ <% end %>
+ />
+</PHONE_CONFIG>
diff --git a/app/views/config_polycom/settings_directory.xml.haml b/app/views/config_polycom/settings_directory.xml.haml
new file mode 100644
index 0000000..107f991
--- /dev/null
+++ b/app/views/config_polycom/settings_directory.xml.haml
@@ -0,0 +1,16 @@
+!!! XML
+%directory
+ %item_list
+ %item
+ %ln= 'Directory'
+ %ct= '!directory'
+ %sd= 38
+ %item
+ %ln= 'Call History'
+ %ct= '!callhistory'
+ %sd= 39
+ %item
+ %ln= 'Applications'
+ %ct= '!applications'
+ %sd= 40
+