X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fphonenumber.html;h=60414a644781e7b65c3b3bcbfc19170a089330a4;hb=9dc88f6c738f30ce1eb6339ba4b739b45555dea4;hp=b1ae2aa2aa661948324c89397a1c87fbfd799d39;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git
diff --git a/httemplate/elements/phonenumber.html b/httemplate/elements/phonenumber.html
index b1ae2aa2a..60414a644 100644
--- a/httemplate/elements/phonenumber.html
+++ b/httemplate/elements/phonenumber.html
@@ -1,15 +1,24 @@
-
-
-
-
+<% include('/elements/init_overlib.html') %>
% if ( length($number) ) {
- <% $number %>
+ <% $number %>
% if ( $opt{'callable'} && $curuser->option('vonage-username') ) {
-
+ <% include('/elements/popup_link.html',
+ 'action' =>
+ 'https://secure.click2callu.com/tpcc/makecall'.
+ '?username='. uri_escape($curuser->option('vonage-username')).
+ '&password='. uri_escape($curuser->option('vonage-password')).
+ "&fromnumber=$vonage_number".
+ "&tonumber=$snumber",
+ 'width' => 240,
+ 'height' => 64,
+ 'actionlabel' => 'Initiating call',
+ 'label' => qq!!,
+ )
+ %>
% }
%