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.
tabellio.pfbviews/tabellio/pfbviews/document.pt

99 lines
3.2 KiB
XML

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
lang="fr"
metal:use-macro="context/main_template/macros/master"
i18n:domain="tabellio.pfbviews">
<body>
<metal:main fill-slot="main">
<tal:main-macro metal:define-macro="main">
<div tal:replace="structure provider:plone.abovecontenttitle" />
<h1 metal:use-macro="context/kss_generic_macros/macros/generic_title_view">Title</h1>
<div tal:replace="structure provider:plone.belowcontenttitle" />
<div tal:replace="structure provider:plone.abovecontentbody" />
<div tal:condition="context/file" class="document-download">
<a tal:attributes="href string:${context/absolute_url}/document">Télécharger le fichier</a>
</div>
<div tal:condition="context/doctype" class="field">
<label>Type</label>
<div>
<span tal:content="context/doctype"/>
</div>
</div>
<div tal:condition="context/authors" class="field">
<label>Auteurs</label>
<div>
<ul>
<li tal:repeat="author context/authors"><a tal:attributes="href author/to_object/absolute_url" tal:content="author/to_object/Title">Céline Delforge</a></li>
</ul>
</div>
</div>
<div tal:condition="context/polgroups" class="field">
<label>Groupes politiques</label>
<div>
<ul>
<li tal:repeat="polgroup context/polgroups"><span tal:content="polgroup/to_object/Title">Ecolo</span></li>
</ul>
</div>
</div>
<div tal:condition="context/session" class="field">
<label>Session</label>
<div>
<span tal:content="context/session"/>
</div>
</div>
<div tal:condition="context/topics" class="field">
<label>Matières</label>
<div>
<ul>
<li tal:repeat="topic context/topics"><span tal:content="topic">Santé</span></li>
</ul>
</div>
</div>
<div tal:condition="context/no" class="field">
<label>Numéro du document</label>
<div>
<span tal:content="context/refno"/>
</div>
</div>
<div tal:condition="context/related_docs" class="field">
<label>Document(s) associé(s)</label>
<div>
<div id="results">
<ul>
<tal:entry tal:repeat="object view/related_docs">
<li tal:define="oddrow repeat/object/odd" tal:attributes="class python: oddrow and 'odd' or 'even'"><div>
<h4><a href="#" tal:attributes="href object/absolute_url" tal:content="object/reftitle">Véronique Salvi</a></h4>
<p class="intitule" tal:content="object/Title"/>
<p class="authors" tal:content="python: object.get_authors_as_string()" tal:condition="python: object.authors" />
</div></li>
</tal:entry>
</ul>
</div>
</div>
</div>
<div tal:replace="structure provider:plone.belowcontentbody" />
</tal:main-macro>
</metal:main>
</body>
</html>