add view for questions
This commit is contained in:
parent
3f144f52f8
commit
dd3407163c
|
@ -33,5 +33,12 @@
|
|||
permission="zope2.View"
|
||||
/>
|
||||
|
||||
<browser:page
|
||||
for="tabellio.documents.question.IQuestion"
|
||||
name="view"
|
||||
class=".question.View"
|
||||
template="question.pt"
|
||||
permission="zope2.View"
|
||||
/>
|
||||
|
||||
</configure>
|
||||
|
|
|
@ -0,0 +1,69 @@
|
|||
<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/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>
|
||||
|
||||
<!-- XXX: link to CRI -->
|
||||
|
||||
<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