summaryrefslogtreecommitdiffstats
path: root/skins
diff options
context:
space:
mode:
Diffstat (limited to 'skins')
-rw-r--r--skins/pcfannuaire/pcfannuaire_phones.pt2
-rw-r--r--skins/pcfannuaire/pcfannuaire_photos.pt4
-rw-r--r--skins/pcfannuaire/pcfannuaire_view.pt14
3 files changed, 14 insertions, 6 deletions
diff --git a/skins/pcfannuaire/pcfannuaire_phones.pt b/skins/pcfannuaire/pcfannuaire_phones.pt
index a8d0651..a2ab8bd 100644
--- a/skins/pcfannuaire/pcfannuaire_phones.pt
+++ b/skins/pcfannuaire/pcfannuaire_phones.pt
@@ -38,7 +38,9 @@
<table id="phone-numbers">
<tr tal:repeat="entry python: context.getEntriesWithPhone()">
<td>
+ <a tal:attributes="href string:?person=${entry}">
<span tal:replace="entry/displayName">displayName</span>
+ </a>
</td>
<td class="col-phone">
<span tal:replace="entry/shortTelephoneNumber">000</span>
diff --git a/skins/pcfannuaire/pcfannuaire_photos.pt b/skins/pcfannuaire/pcfannuaire_photos.pt
index 1aadc21..d0acaf9 100644
--- a/skins/pcfannuaire/pcfannuaire_photos.pt
+++ b/skins/pcfannuaire/pcfannuaire_photos.pt
@@ -38,8 +38,8 @@
<div id="photos">
<div tal:repeat="entry python: context.getEntries()" class="photo">
<a tal:attributes="href string:?person=${entry}">
- <img tal:attributes="src string:/intranet/static/photos/${entry/samaccountname}.jpg" width="130" height="117" />
- <span><span tal:replace="entry/displayName">displayName</span></span></a>
+ <img tal:attributes="src string:/intranet/static/photos/${entry/samaccountname}.jpg" width="100" height="117" />
+ <span><br><span tal:replace="entry/displayName">displayName</span></span></a>
</div>
</div>
diff --git a/skins/pcfannuaire/pcfannuaire_view.pt b/skins/pcfannuaire/pcfannuaire_view.pt
index 8825913..2303a16 100644
--- a/skins/pcfannuaire/pcfannuaire_view.pt
+++ b/skins/pcfannuaire/pcfannuaire_view.pt
@@ -59,7 +59,7 @@
<div tal:condition="python: (service and not cellule)">
<h2 tal:content="python: service">service name</h2>
<ul>
- <li tal:repeat="entry python: [context.getServiceManager(service)]">
+ <li tal:repeat="entry python: context.getServiceManager(service)">
<a tal:attributes="href string:?person=${entry}">
<span tal:replace="entry/displayName">displayName</span>
</a>
@@ -85,8 +85,9 @@
</div>
<div tal:condition="python: (service and cellule)">
- <h2><span tal:content="python: service">service name</span> -
- <span tal:content="python: cellule">cellule name</span></h2>
+ <h2><span tal:content="python: service">service name</span>
+<span tal:condition="python: service != cellule"> -
+ <span tal:content="python: cellule">cellule name</span></span></h2>
<ul>
<li tal:repeat="entry python: context.getCelluleManagers(service, cellule)">
<a tal:attributes="href string:?person=${entry}">
@@ -135,7 +136,12 @@ img.photo {
<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 : <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>
+ <li tal:condition="entry/has_a_chief">Responsable(s) :
+ <span tal:repeat="manager_couple entry/all_manager_couples">
+ <a tal:attributes="href python: '?person=' + manager_couple[0]" tal:content="python: manager_couple[1]">plop</a>
+ <span tal:condition="not: repeat/manager_couple/end">, </span>
+ </span>
+ </li>
</ul>
</div>
</div>