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

74 lines
3.2 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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.pcfviews">
<body>
<metal:main fill-slot="main">
<tal:main-macro metal:define-macro="main">
<div tal:replace="structure provider:plone.abovecontenttitle" />
<h1 class="documentFirstHeading" tal:content="context/reftitle"/>
<div tal:replace="structure provider:plone.belowcontenttitle" />
<div tal:replace="structure provider:plone.abovecontentbody" />
<h2 tal:content="context/Title">titre</h2>
<p tal:condition="context/file_image_id">
<a tal:attributes="href string:http://archive.pcf.be/${context/file_image_id}?action=browse">Consulter en ligne</a> - <a tal:attributes="href string:http://archive.pcf.be/${context/file_image_id}e">Télécharger le document</a>
</p>
<h3>Informations générales</h3>
<ul>
<li>Date : <span tal:content="context/date_str">date</span></li>
<li tal:condition="context/authors">Auteurs :
<span tal:content="structure context/authors_html_str">plop</span></li>
<li tal:condition="context/polgroups">Groupes politiques :
<span tal:content="structure context/polgroups_str">plop</span></li>
<li tal:condition="context/topics">Matières :
<ul>
<li tal:repeat="topic context/topic_titles"><span tal:content="topic"/></li>
</ul></li>
</ul>
<div tal:condition="python: context.parent_dossier and context.parent_dossier.to_object">
<a tal:attributes="href context/parent_dossier/to_object/absolute_url">Afficher le dossier</a>
</div>
<div tal:define="docs context/associated_docs" tal:condition="docs">
<h3>Documents associés</h3>
<table id="associated-docs">
<tr tal:repeat="doc docs">
<td class="docref"><a tal:attributes="href doc/absolute_url" tal:content="doc/reftitle">plop</a></td>
<td class="doctitle"><span tal:replace="doc/Title"></span></td>
<td class="docdate"><span tal:replace="doc/date_str"></span></td>
</tr>
</table>
</div>
<div tal:define="related_elements context/related_elements" tal:condition="related_elements">
<h3>Documents sémantiquement proches</h3>
<table id="related-elements">
<tr tal:repeat="item related_elements">
<td class="docref"><a tal:attributes="href item/getURL" tal:content="python: item.getObject().reftitle"></a></td>
<td class="doctitle"><span tal:replace="item/Title"></span></td>
<td class="docdate"><span tal:replace="python: item.getObject().date_str"></span></td>
</tr>
</table>
<a tal:attributes="href view/related_search_url">Rechercher tous les documents proches</a>
</div>
<div tal:replace="structure provider:plone.belowcontentbody" />
</tal:main-macro>
</metal:main>
</body>
</html>