summaryrefslogtreecommitdiffstats
path: root/skins/pcfannuaire/pcfannuaire_view.pt
diff options
context:
space:
mode:
Diffstat (limited to 'skins/pcfannuaire/pcfannuaire_view.pt')
-rw-r--r--skins/pcfannuaire/pcfannuaire_view.pt27
1 files changed, 23 insertions, 4 deletions
diff --git a/skins/pcfannuaire/pcfannuaire_view.pt b/skins/pcfannuaire/pcfannuaire_view.pt
index 8f47e41..8825913 100644
--- a/skins/pcfannuaire/pcfannuaire_view.pt
+++ b/skins/pcfannuaire/pcfannuaire_view.pt
@@ -63,6 +63,8 @@
<a tal:attributes="href string:?person=${entry}">
<span tal:replace="entry/displayName">displayName</span>
</a>
+ <span tal:replace="entry/shortTelephoneNumber">000</span>
+ <span tal:condition="entry/mobile">, <span tal:replace="entry/mobile">mobile</span></span>
</li>
</ul>
@@ -75,6 +77,9 @@
<a tal:attributes="href string:?person=${entry}">
<span tal:replace="entry/displayName">displayName</span>
</a>
+
+ <span tal:replace="entry/shortTelephoneNumber">000</span>
+ <span tal:condition="entry/mobile">, <span tal:replace="entry/mobile">mobile</span></span>
</li>
</ul>
</div>
@@ -87,6 +92,9 @@
<a tal:attributes="href string:?person=${entry}">
<span tal:replace="entry/displayName">displayName</span>
</a>
+
+ <span tal:replace="entry/shortTelephoneNumber">000</span>
+ <span tal:condition="entry/mobile">, <span tal:replace="entry/mobile">mobile</span></span>
</li>
</ul>
@@ -95,14 +103,24 @@
<a tal:attributes="href string:?person=${entry}">
<span tal:replace="entry/displayName">displayName</span>
</a>
+
+ <span tal:replace="entry/shortTelephoneNumber">000</span>
+ <span tal:condition="entry/mobile">, <span tal:replace="entry/mobile">mobile</span></span>
</li>
</ul>
</div>
<div tal:condition="python: person">
<div tal:define="entry python: context.getPerson(person)">
+<style type="text/css">
+img.photo {
+ float: right;
+ padding: 5px;
+ border: 1px solid black;
+}
+</style>
<h2><span tal:replace="entry/displayName">displayName</span></h2>
- <img tal:attributes="src string:/intranet/static/photos/${entry/givenName}.${entry/sn}.jpg"/>
+ <img class="photo" tal:attributes="src string:/intranet/static/photos/${entry/samaccountname}.jpg"/>
<ul>
<li>Téléphone(s) : <span tal:repeat="telephoneNumber entry/telephoneNumbers">
<span tal:replace="telephoneNumber">phoneNumber</span>
@@ -110,13 +128,14 @@
<li tal:condition="entry/shortTelephoneNumber">Téléphone (abrégé) : <span tal:replace="entry/shortTelephoneNumber"></span></li>
<li tal:condition="entry/mobile">GSM : <span tal:replace="entry/mobile"></span></li>
<li tal:condition="entry/building">Bâtiment : <span tal:replace="entry/building"></span></li>
- <li tal:condition="entry/floor">Étage : <span tal:replace="entry/floor"></span></li>
+ <li tal:condition="entry/floor">Étage : <span tal:replace="entry/floor"></span> (<a tal:attributes="href string:/intranet/static/photos/${entry/plan_filename}">plan</a>)</li>
<li tal:condition="entry/office">Bureau : <span tal:replace="entry/office"></span></li>
<li tal:condition="entry/fax">Fax : <span tal:replace="entry/fax"></span></li>
<li tal:condition="entry/title">Titre : <span tal:replace="entry/title"></span></li>
<li tal:condition="entry/email">Courriel : <a tal:attributes="href string:mailto:${entry/email}" tal:content="entry/email"></a></li>
- <li tal:condition="entry/service">Service : <span tal:replace="entry/service"></span></li>
- <li tal:condition="entry/manager">Chef de service : <a tal:attributes="href string:?person=${entry/manager_url}" tal:content="entry/manager_name"></a></li>
+ <li tal:condition="entry/service">Service : <a tal:attributes="href string:?service=${entry/service}"><span tal:replace="entry/service"></span></a></li>
+ <li tal:condition="entry/division">Cellule : <a tal:attributes="href string:?service=${entry/service}&cellule=${entry/division}"><span tal:replace="entry/division"></span></a></li>
+ <li tal:condition="entry/has_a_chief">Responsable : <a tal:attributes="href string:?person=${entry/manager_url}" tal:content="entry/manager_name"></a></li>
</ul>
</div>
</div>