summaryrefslogtreecommitdiff
path: root/addons/web_linkedin/static/src/xml/linkedin.xml
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-07-31 11:55:10 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-07-31 11:55:10 +0200
commitfc5163b31aa8be5b59bcefde17c3593ef2712ee3 (patch)
tree37338ddcf184cef3947760b99b759cc779786157 /addons/web_linkedin/static/src/xml/linkedin.xml
parente34d7fc798d6aac7c9207d4f530d5f78763c9cbd (diff)
Removed all stuff
bzr revid: nicolas.vanhoren@openerp.com-20120731095510-svyw6im3mhubgitt
Diffstat (limited to 'addons/web_linkedin/static/src/xml/linkedin.xml')
-rw-r--r--addons/web_linkedin/static/src/xml/linkedin.xml146
1 files changed, 1 insertions, 145 deletions
diff --git a/addons/web_linkedin/static/src/xml/linkedin.xml b/addons/web_linkedin/static/src/xml/linkedin.xml
index bf31693557b..ff4d920d031 100644
--- a/addons/web_linkedin/static/src/xml/linkedin.xml
+++ b/addons/web_linkedin/static/src/xml/linkedin.xml
@@ -1,150 +1,6 @@
<?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="40" alt="Search on LinkedIn"/>
- <img id="linkedindefault" class="linkedin_icon" src="/web_linkedin/static/src/img/Linkedin_grey.png" width="40" 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>
+<templates xml:space="preserve">
-<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="Register.Linkedin" style="height:300px;overflow:auto;">
- <div>
- <p style="color:grey;"> Connect OpneERP to LinkedIn to allow synchronizing companies and people with LinkedIn contacts in order to <br/>
- get their data automatically (photos, address, news). You just need to setup the API key once, and it will work <br/>
- for all users of your system.
- </p>
- <br/>
- <p>1) Go to this URL:
- <a href="https://www.linkedin.com/secure/developer" class="oe_secondary_menu_section" target="_blank">
- https://www.linkedin.com/secure/developer
- </a>
- </p>
- <p>2) Log you into LinkedIn if you din't yet</p>
-<pre>
-3) Add New Application and fill the form,
- - JavaScript API Domain is Your domain name
- (e.g. https://yourcompany.my.openerp.com),
- - You can give multiple domain (e.g. yourcompany.my.openerp.com),
- - programming tools is Javascript
-</pre>
- <p>4) Copy the API key here:
- <input type="text" id="apikey"/><button id="register" style="margin-left:10px; color:white;" class="btn_api" >Apply</button>
- </p>
- </div>
-</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">
- <div class="search-box" >
- <table>
- <t t-if="result and result.people._total>0">
- <tr id="searchresultscontact">
- <td width="70px;">
- <span>
- <label class="lbl-ldnbox"><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 class="lbl-ldnbox"><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