odoo/addons/web_linkedin/static/src/xml/linkedin.xml

150 lines
6.0 KiB
XML

<?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="45" alt="Search on LinkedIn"/>
<img id="linkedindefault" class="linkedin_icon" src="/web_linkedin/static/src/img/Linkedin_grey.png" width="45" 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="Register.Linkedin" style="height:300px;overflow:auto;">
<div>
<div>
<p>Go to...
<a href="https://www.linkedin.com/secure/developer" class="oe_secondary_menu_section" target="_blank">
https://www.linkedin.com/secure/developer
</a>
</p>
<p>Log you in Linkedin if you did not yet</p>
<p>Add a new Application</p>
<p>Fill in the form</p>
</div>
<div>
<img src='/web_linkedin/static/src/img/help_to_fill_form.png' height="500" width="800" border="2"/>
</div>
<div>
<p>Copy the API Key:
<input type="text" id="apikey"/><button id="register" class="oe_form_button_save_dirty" onclick="">Apply</button>
</p>
</div>
<div>
<img src='/web_linkedin/static/src/img/apikey.png' height="300" width="500" border="2"/>
</div>
</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" 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>