Anandkumar (OpenERP) has proposed merging 
lp:~openerp-commiter/openobject-addons/trunk-linkedin-popup-apikey-pan into 
lp:~openerp-dev/openobject-addons/trunk-linkedin-contacts.

Requested reviews:
  OpenERP R&D Team (openerp-dev)

For more details, see:
https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-linkedin-popup-apikey-pan/+merge/110251

Add new pop up message when api key does not apply and try to search from 
linkedin.
-- 
https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-linkedin-popup-apikey-pan/+merge/110251
Your team OpenERP R&D Team is requested to review the proposed merge of 
lp:~openerp-commiter/openobject-addons/trunk-linkedin-popup-apikey-pan into 
lp:~openerp-dev/openobject-addons/trunk-linkedin-contacts.
=== added file 'web_linkedin/static/src/img/apikey.png'
Binary files web_linkedin/static/src/img/apikey.png	1970-01-01 00:00:00 +0000 and web_linkedin/static/src/img/apikey.png	2012-06-14 07:21:24 +0000 differ
=== added file 'web_linkedin/static/src/img/help_to_fill_form.png'
Binary files web_linkedin/static/src/img/help_to_fill_form.png	1970-01-01 00:00:00 +0000 and web_linkedin/static/src/img/help_to_fill_form.png	2012-06-14 07:21:24 +0000 differ
=== modified file 'web_linkedin/static/src/js/linkedin.js'
--- web_linkedin/static/src/js/linkedin.js	2012-06-12 12:44:54 +0000
+++ web_linkedin/static/src/js/linkedin.js	2012-06-14 07:21:24 +0000
@@ -107,17 +107,16 @@
             }
         },
         APIKeyWarning: function(e) {
-            e.message= "Linkedin API Key is not registerd/correct.\n  Go to Settings,  'General Settings'  menu and follow steps to register the LinkedIn API Key.";
-            instance.web.dialog($(QWeb.render("CrashManager.warning", _t(e))), {
-                title: _t("Linkedin API Key Warning"),
-                modal: true,
-                height: 200,
-                width: 500,
-                buttons: [
-                {
-                    text: _t("Ok"),
+            e.message="";            
+            instance.web.dialog($(QWeb.render("Register.Linkedin", _t(e))), {
+                title: _t("Configure your Linkedin Key API"),
+                modal: true,                
+                width : 825,        
+                buttons:[{
+                    text: _t("Close"),
                     click: function() { $(this).dialog("close"); }
-                }]
+                }
+                    ]
             });
         },
         setTemplate: function( URL, AccountName ) {

=== modified file 'web_linkedin/static/src/xml/linkedin.xml'
--- web_linkedin/static/src/xml/linkedin.xml	2012-06-12 12:44:54 +0000
+++ web_linkedin/static/src/xml/linkedin.xml	2012-06-14 07:21:24 +0000
@@ -31,6 +31,45 @@
         </a>
     </td>
 </t>
+<t t-name="Register.Linkedin" style="height:300px;overflow:auto;">
+    <table class="tablet">
+    <th><center><button name="submit">No Thanks</button></center></th>
+    <tr>
+        <td>1)Go To<a href="https://www.linkedin.com/secure/developer";>https://www.linkedin.com/secure/developer</a>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <b>2) Log you in Linkedin if you did not yet</b>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <b>3)  Add a new Application</b>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <b>4)  Fill in the form</b>
+        </td>
+    </tr>
+    <tr>
+        <td>      
+            <img src='/web_linkedin/static/src/img/help_to_fill_form.png' />
+        </td>        
+    </tr>
+    <tr>
+        <td>
+            <b>5) Copy the API Key <input type="text"/><button class="buttonkey">Apply</button></b>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <img src='/web_linkedin/static/src/img/apikey.png' />
+        </td>
+    </tr>
+    </table>
+</t>
 
 <t t-name="TwitterURL">
     <td id="twitterid">

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to