summaryrefslogtreecommitdiff
path: root/addons/web_linkedin/static/src/xml
diff options
context:
space:
mode:
authorJiten (OpenERP) <jra@tinyerp.com>2012-06-12 18:14:54 +0530
committerJiten (OpenERP) <jra@tinyerp.com>2012-06-12 18:14:54 +0530
commit61b7f5034d0d2b8b609dd99fe32766e48ed99114 (patch)
treee6c5daceb7394683ac2f3c263af196f252e19489 /addons/web_linkedin/static/src/xml
parentfcca76b487575e82f00ab8ff9d8f021f3fa3187d (diff)
[ADD] Add linkedin module for integration linkedin with openerp.
bzr revid: jra@tinyerp.com-20120612124454-78zfn48kerp93c5z
Diffstat (limited to 'addons/web_linkedin/static/src/xml')
-rw-r--r--addons/web_linkedin/static/src/xml/linkedin.xml124
1 files changed, 124 insertions, 0 deletions
diff --git a/addons/web_linkedin/static/src/xml/linkedin.xml b/addons/web_linkedin/static/src/xml/linkedin.xml
new file mode 100644
index 00000000000..9321e54787d
--- /dev/null
+++ b/addons/web_linkedin/static/src/xml/linkedin.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vim:fdl=1:
+-->
+<templates id="template" xml:space="preserve">
+<t t-name="Linkedin">
+ <table cellpadding="0" cellspacing="0" border="0" width="100%">
+ <tr>
+ <td width="100%" id="linkedin-field-name">
+ <t t-call="FieldChar"/>
+ </td>
+ <td id="linkedindiv" class="oe_form_group_cell" style="padding:0px;">
+ <div id="imagediv" name="search1">
+ <span style="display:inline;">
+ <a href="#">
+ <img id="linkedinrecord" class="linkedin_icon" src="/web_linkedin/static/src/img/Linkedin_blue.png" width="24" height="24" alt="Search on LinkedIn"/>
+ <img id="linkedindefault" class="linkedin_icon" src="/web_linkedin/static/src/img/Linkedin_grey.png" width="24" height="24" alt="Search on LinkedIn"/>
+ </a>
+ <img id="loader" class="loading" src="/web_linkedin/static/src/img/loading.png" width="24" height="24"/>
+ </span>
+ </div>
+ </td>
+ </tr>
+ <tr id="profiletwittor-tr"></tr>
+ </table>
+</t>
+
+<t t-name="ProfileURL">
+ <td id="profileid">
+ <a t-att-href="URLID" target="_blank" id="profileid">
+ <img src="/web_linkedin/static/src/img/linkedin-profile.gif" width="130" height="24" border="0" alt="View profile on LinkedIn"/>
+ </a>
+ </td>
+</t>
+
+<t t-name="TwitterURL">
+ <td id="twitterid">
+ <a t-att-href="URLID" target="_blank">
+ <img src="/web_linkedin/static/src/img/twitt-follow.png" width="100" height="24" border="0" alt="Follow"/>
+ </a>
+</td>
+</t>
+<t t-name="SearchWarning">
+ <div>Record Not Found.</div>
+</t>
+<t t-name="Linkedincontact">
+ <div id="searchresults" class="openerp" style="-webkit-margin-start:-70px; -moz-margin-start:-70px; z-index:2000; position:absolute;">
+ <div class="search-box" >
+ <table>
+ <t t-if="result and result.people._total>0">
+ <tr id="searchresultscontact">
+ <td width="70px;">
+ <span>
+ <label style="font-size:12px;"><b>Persons</b></label>
+ </span>
+ <br/>
+ </td>
+ <td>
+ <ul class="ul-ldn-dropdown">
+ <t t-if="result.people.values">
+ <li class="li-ldn-dropdown" t-foreach="result.people.values" t-as="data" t-if="(data.firstName!='' and data.firstName!='Private' and data.firstName!='private') or (data.lastName!='' and data.lastName!='Private' and data.lastName!='private')" t-att-id="data.id">
+ <table>
+ <tr>
+ <td>
+ <!-- picture url not always there, must be defensive -->
+ <t t-if="data.hasOwnProperty('pictureUrl')">
+ <img align='baseline' t-att-src="data.pictureUrl" width="30"/>
+ </t>
+ <t t-if="!data.hasOwnProperty('pictureUrl')">
+ <img align='baseline' width="30" src='http://static02.linkedin.com/scds/common/u/img/icon/icon_no_photo_80x80.png' />
+ </t>
+ </td>
+ <td>
+ <b><t t-esc="data.firstName+' '+data.lastName" /></b><br/>
+ <t t-esc="data.headline" />
+ </td>
+ </tr>
+ </table>
+ </li>
+ </t>
+ </ul>
+ </td>
+ </tr>
+ </t>
+ <t t-call="Linkedincompany" />
+ </table>
+
+ </div>
+ </div>
+</t>
+<t t-name="Linkedincompany">
+<t t-if="resultcompany and resultcompany.companies._total>0">
+ <tr id="searchresultscompany">
+ <td width="70px;">
+ <span>
+ <label style="font-size:12px;"><b>Companies</b></label>
+ </span>
+ <br/>
+ </td>
+ <td>
+ <ul class="ul-ldn-dropdown">
+ <li class="li-ldn-dropdown" t-foreach="resultcompany.companies.values" t-as="data" t-att-id="data.id">
+ <table>
+ <tr>
+ <td>
+ <t t-if="data.hasOwnProperty('logoUrl')">
+ <img align='baseline' t-att-src="data.logoUrl" width="30" />
+ </t>
+ <t t-if="!data.hasOwnProperty('logoUrl')">
+ <img align='baseline' width="30" src='http://static02.linkedin.com/scds/common/u/img/icon/icon_no_photo_80x80.png' />
+ </t>
+ </td>
+ <td>
+ <b><t t-esc="data.name" /></b><br/>
+ <t t-esc="data.industry" />
+ </td>
+ </tr>
+ </table>
+ </li>
+ </ul>
+ </td>
+ </tr>
+</t>
+</t>
+</templates> \ No newline at end of file