154 lines
6.9 KiB
XML
154 lines
6.9 KiB
XML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||
xmlns:tal="http://xml.zope.org/namespaces/tal"
|
||
xmlns:metal="http://xml.zope.org/namespaces/metal"
|
||
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
||
xml:lang="en-US"
|
||
lang="en-US"
|
||
metal:use-macro="here/main_template/macros/master"
|
||
i18n:domain="pcfannuaire">
|
||
|
||
<metal:javascriptslot fill-slot="javascript_head_slot">
|
||
<script type="text/javascript" language="JavaScript">
|
||
</script>
|
||
</metal:javascriptslot>
|
||
|
||
<body>
|
||
<metal:main fill-slot="main">
|
||
<tal:main-macro metal:define-macro="main"
|
||
tal:define="kssClassesView context/@@kss_field_decorator_view;
|
||
getKssClasses nocall:kssClassesView/getKssClassesInlineEditable;
|
||
service python:context.REQUEST.get('service');
|
||
person python:context.REQUEST.get('person');
|
||
cellule python:context.REQUEST.get('cellule');">
|
||
|
||
<div tal:replace="structure provider:plone.abovecontenttitle" />
|
||
<h1 metal:use-macro="here/kss_generic_macros/macros/generic_title_view">
|
||
Title or id
|
||
</h1>
|
||
<div tal:replace="structure provider:plone.belowcontenttitle" />
|
||
|
||
<div tal:replace="structure provider:plone.abovecontentbody" />
|
||
|
||
<div class="intro"
|
||
tal:condition="here/description"
|
||
tal:content="structure here/description">
|
||
Description
|
||
</div>
|
||
|
||
<div tal:condition="python: not(service) and not(person)">
|
||
<h2>Secrétaire Général</h2>
|
||
<ul>
|
||
<li tal:repeat="entry python: [context.getSecretaireGeneral()]">
|
||
<a tal:attributes="href string:?person=${entry}">
|
||
<span tal:replace="entry/displayName">displayName</span>
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
|
||
<h2>Services</h2>
|
||
<ul>
|
||
<li tal:repeat="service python: context.getServices()">
|
||
<a tal:attributes="href string:?service=${service}" tal:content="service">service</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
|
||
<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)">
|
||
<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>
|
||
|
||
<ul tal:repeat="cellule python: context.getCellules(service)">
|
||
<a tal:attributes="href string:?service=${service}&cellule=${cellule}" tal:content="cellule">cellule</a>
|
||
</ul>
|
||
|
||
<ul>
|
||
<li tal:repeat="entry python: context.getServiceNonManagers(service)">
|
||
<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: (service and cellule)">
|
||
<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}">
|
||
<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>
|
||
|
||
<ul>
|
||
<li tal:repeat="entry python: context.getCellulePeople(service, cellule)">
|
||
<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 class="photo" tal:attributes="src string:/intranet/static/photos/${entry/samaccountname}.jpg"/>
|
||
<ul>
|
||
<li>T<EFBFBD>l<EFBFBD>phone(s) : <span tal:repeat="telephoneNumber entry/telephoneNumbers">
|
||
<span tal:replace="telephoneNumber">phoneNumber</span>
|
||
</span></li>
|
||
<li tal:condition="entry/shortTelephoneNumber">T<EFBFBD>l<EFBFBD>phone (abr<62>g<EFBFBD>) : <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<EFBFBD>timent : <span tal:replace="entry/building"></span></li>
|
||
<li tal:condition="entry/floor"><EFBFBD>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 : <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(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>
|
||
|
||
<div tal:replace="structure provider:plone.belowcontentbody" />
|
||
</tal:main-macro>
|
||
</metal:main>
|
||
</body>
|
||
</html>
|