view for questions
This commit is contained in:
parent
fd3b3f7b0a
commit
3b1039f0fe
|
@ -36,6 +36,14 @@
|
|||
permission="zope2.View"
|
||||
/>
|
||||
|
||||
<browser:page
|
||||
for="tabellio.documents.question.IQuestion"
|
||||
name="view"
|
||||
class=".question.View"
|
||||
template="question.pt"
|
||||
permission="zope2.View"
|
||||
/>
|
||||
|
||||
<genericsetup:registerProfile
|
||||
name="default"
|
||||
title="tabellio.pcfviews"
|
||||
|
|
|
@ -0,0 +1,80 @@
|
|||
<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/questype_str">proposition de résolution</span>
|
||||
-
|
||||
<span tal:content="context/no">261</span>
|
||||
(<span tal:content="context/session">2011-2012</span>)
|
||||
-
|
||||
<span tal:content="context/date_str">date</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
Statut :
|
||||
<span tal:content="context/state_str">En commission</span>
|
||||
</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/commissions">
|
||||
Cette question est traitée dans les commissions suivantes :
|
||||
<ul>
|
||||
<li tal:repeat="commission context/commissions"><span
|
||||
tal:content="commission/to_object/Title">commission de la
|
||||
Santé</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div tal:condition="context/histolines">
|
||||
Chronologie
|
||||
<table>
|
||||
<tr tal:repeat="histoline context/histolines">
|
||||
<td tal:content="histoline/date_str">18 octobre 2010</td>
|
||||
<td><p tal:content="histoline/title">title</p>
|
||||
<p tal:condition="histoline/authors" tal:content="histoline/authors_str"/>
|
||||
</td>
|
||||
<td><a tal:condition="histoline/document" tal:attributes="href
|
||||
histoline/document/to_object/absolute_url"
|
||||
tal:content="histoline/document/to_object/reftitle">doc</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<a tal:attributes="href string:http://reflex.raadvst-consetat.be/reflex/docs/?db=parlement&inst=pcf&legislat=${context/session}&doc=${context/no}&lang=fr">reflex</a>
|
||||
|
||||
<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