document view, 1st draft.
This commit is contained in:
parent
0aa03f0fee
commit
3a3b18313c
|
@ -20,6 +20,13 @@
|
|||
permission="zope2.View"
|
||||
/>
|
||||
|
||||
<browser:page
|
||||
for="tabellio.documents.document.IDocument"
|
||||
name="view"
|
||||
class=".document.View"
|
||||
template="document.pt"
|
||||
permission="zope2.View"
|
||||
/>
|
||||
|
||||
<genericsetup:registerProfile
|
||||
name="default"
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
<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 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" />
|
||||
|
||||
<p>
|
||||
<span tal:content="context/doctype_str">proposition de résolution</span>
|
||||
-
|
||||
<span tal:content="context/no">261</span>
|
||||
(<span tal:content="context/session">2011-2012</span>)
|
||||
-
|
||||
N<sup>o</sup> <span tal:content="context/nodoc">1</span>
|
||||
-
|
||||
<span tal:content="context/date_str">date</span>
|
||||
</p>
|
||||
|
||||
<div tal:condition="context/file_image_id">
|
||||
<a tal:attributes="href string:http://archive.pcf.be/${context/file_image_id}?action=browse">Version officielle (image scannée)</a>
|
||||
</div>
|
||||
|
||||
<div tal:condition="context/authors">
|
||||
Auteurs
|
||||
<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 tal:condition="context/polgroups">
|
||||
Groupes politiques
|
||||
<ul>
|
||||
<li tal:repeat="polgroup context/polgroups"><span tal:content="polgroup/to_object/Title">Ecolo</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div tal:condition="context/parent_dossier">
|
||||
<a tal:attributes="href context/parent_dossier/to_object/absolute_url">Afficher le dossier</a>
|
||||
</div>
|
||||
|
||||
<div tal:replace="structure provider:plone.belowcontentbody" />
|
||||
|
||||
</tal:main-macro>
|
||||
</metal:main>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
from Products.Five import BrowserView
|
||||
|
||||
class View(BrowserView):
|
||||
pass
|
||||
|
Reference in New Issue