add new 'bureau event' type
This commit is contained in:
parent
fc50c59cdf
commit
38ca8711db
|
@ -0,0 +1,26 @@
|
|||
import os
|
||||
|
||||
from five import grok
|
||||
from zope import schema, component
|
||||
from Products.CMFCore.utils import getToolByName
|
||||
|
||||
from plone.registry.interfaces import IRegistry
|
||||
from tabellio.config.interfaces import ITabellioSettings
|
||||
|
||||
import tabellio.agenda.burevent
|
||||
|
||||
|
||||
class BurEventBaseView(tabellio.agenda.parlevent.ParlEventBaseView):
|
||||
def has_stream(self):
|
||||
return False
|
||||
|
||||
|
||||
class BurEventView(BurEventBaseView):
|
||||
def get_stream_name(self):
|
||||
return None
|
||||
|
||||
|
||||
class View(grok.View, BurEventView):
|
||||
grok.context(tabellio.agenda.burevent.IBurEvent)
|
||||
grok.require('zope2.View')
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
|
||||
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="en"
|
||||
metal:use-macro="context/main_template/macros/master"
|
||||
i18n:domain="tabellio.agenda">
|
||||
<body>
|
||||
|
||||
<metal:main fill-slot="main">
|
||||
<tal:main-macro metal:define-macro="main"
|
||||
tal:define="toLocalizedTime nocall:context/@@plone/toLocalizedTime">
|
||||
|
||||
<div tal:replace="structure provider:plone.abovecontenttitle" />
|
||||
<h1 class="documentFirstHeading">Agenda</h1>
|
||||
<div tal:replace="structure provider:plone.belowcontenttitle" />
|
||||
|
||||
<h2 tal:content="context/aq_parent/Title">Agenda parlementaire</h2>
|
||||
|
||||
<div id="agenda-view-switcher">
|
||||
<a tal:attributes="href string:../?navyear=${context/start/year}&navmonth=${context/start/month}">Calendrier</a> |
|
||||
<a tal:attributes="href string:../list?navyear=${context/start/year}&navmonth=${context/start/month}">Liste</a>
|
||||
</div>
|
||||
|
||||
<div class="detail-agenda">
|
||||
<h2><span tal:replace="context/longdatetime"/> : <span tal:replace="context/title"/></h2>
|
||||
|
||||
<div class="event-text" tal:condition="context/text" tal:content="structure context/text/output">
|
||||
</div>
|
||||
|
||||
<p class="place">
|
||||
Lieu : <span tal:replace="context/place"/>
|
||||
</p>
|
||||
|
||||
<div class="order-of-the-day" tal:condition="python: context.order_of_the_day and context.order_of_the_day.output">
|
||||
<h2>Ordre du jour</h2>
|
||||
<div tal:content="structure context/order_of_the_day/output"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div tal:replace="structure provider:plone.belowcontentbody" />
|
||||
|
||||
</tal:main-macro>
|
||||
</metal:main>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue