This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
PcfAnnuaire/skins/pcfannuaire/pcfannuaire_view.pt

129 lines
5.5 KiB
XML
Raw Blame History

<!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&eacute;taire G&eacute;n&eacute;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>
</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>
</li>
</ul>
</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>
<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>
</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>
</li>
</ul>
</div>
<div tal:condition="python: person">
<div tal:define="entry python: context.getPerson(person)">
<h2><span tal:replace="entry/displayName">displayName</span></h2>
<img tal:attributes="src string:/intranet/static/photos/${entry/givenName}.${entry/sn}.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></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>
</ul>
</div>
</div>
<div tal:replace="structure provider:plone.belowcontentbody" />
</tal:main-macro>
</metal:main>
</body>
</html>