198 lines
9.2 KiB
XML
198 lines
9.2 KiB
XML
<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;
|
|
updated view/update">
|
|
|
|
<div tal:replace="structure provider:plone.abovecontenttitle" />
|
|
|
|
<h1 class="documentFirstHeading" tal:content="context/title" />
|
|
|
|
<div tal:replace="structure provider:plone.belowcontenttitle" />
|
|
|
|
<div tal:replace="structure provider:plone.abovecontentbody" />
|
|
|
|
<div tal:condition="view/as_month">
|
|
|
|
<table class="ploneCalendar"
|
|
summary="Agenda"
|
|
id="tabellio-agenda"
|
|
i18n:domain="plone"
|
|
i18n:attributes="summary summary_calendar;">
|
|
<caption class="hiddenStructure"
|
|
tal:content="view/monthName">Month name</caption>
|
|
<thead>
|
|
<tr class="monthnames">
|
|
<td colspan="7">
|
|
<a href="#" rel="nofollow"
|
|
title="Previous month"
|
|
id="agenda-calendar-previous"
|
|
tal:define="prevMonthMonth view/prevMonthMonth;
|
|
prevMonthYear view/prevMonthYear"
|
|
tal:attributes="href string:?year=${prevMonthYear}&month=${prevMonthMonth}"
|
|
i18n:attributes="title title_previous_month;">«</a>
|
|
|
|
<span i18n:translate="" tal:omit-tag="">
|
|
<span i18n:name="monthname" i18n:translate=""
|
|
tal:content="view/monthName"
|
|
tal:omit-tag="">monthname</span>
|
|
<span i18n:name="year" i18n:translate="" tal:content="view/year" tal:omit-tag="">year</span>
|
|
</span>
|
|
|
|
<a href="#" rel="nofollow" title="Next month" id="agenda-calendar-next"
|
|
tal:define="nextMonthMonth view/nextMonthMonth;
|
|
nextMonthYear view/nextMonthYear"
|
|
tal:attributes="href string:?year=${nextMonthYear}&month=${nextMonthMonth}"
|
|
i18n:attributes="title title_next_month;">»</a>
|
|
|
|
</tr>
|
|
<tr class="weekdays"
|
|
><tal:data tal:repeat="weekday view/getWeekdays"
|
|
><th scope="col"
|
|
i18n:translate=""
|
|
tal:content="weekday">Su</th
|
|
></tal:data>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr tal:repeat="week view/getEventsForCalendar"
|
|
><tal:block repeat="day week"
|
|
><tal:day define="daynumber day/day;"
|
|
><tal:isday condition="daynumber"
|
|
><tal:block define="day_event day/event;
|
|
is_today day/is_today"
|
|
><td class="event"
|
|
tal:condition="day_event"
|
|
tal:attributes="class python:is_today and 'todayevent' or 'event'"
|
|
><span tal:attributes="class day/eventclass"><strong>
|
|
<a tal:condition="python: day['eventclass'] == 'misc'"
|
|
href=""
|
|
tal:attributes="href string:?XXX-${view/year}-${view/month}-${daynumber};
|
|
title day/eventstring;"
|
|
tal:content="daynumber">31</a
|
|
><a tal:condition="python: day['eventclass'] != 'misc'"
|
|
href=""
|
|
tal:attributes="href string:#event-${day/eventid};
|
|
title day/eventstring;"
|
|
tal:content="daynumber">31</a
|
|
></strong></span></td
|
|
><tal:notdayevent tal:condition="not: day_event"
|
|
><td tal:condition="python:is_today"
|
|
class="todaynoevent"><strong
|
|
tal:content="daynumber">31</strong></td
|
|
><td tal:condition="python:not is_today"
|
|
tal:content="daynumber">31</td
|
|
></tal:notdayevent
|
|
></tal:block
|
|
></tal:isday
|
|
><tal:notisday condition="not: daynumber"
|
|
><td></td
|
|
></tal:notisday
|
|
></tal:day
|
|
></tal:block>
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<!-- XXX: legend -->
|
|
|
|
<div id="month-events">
|
|
<div tal:repeat="event view/getMonthEvents"
|
|
tal:attributes="id string:event-${event/id}" style="display:none;">
|
|
<h3><span tal:content="event/longdatetime"/> <span tal:content="event/title"/></h3>
|
|
<p tal:condition="event/description" class="description" tal:content="event/description"></p>
|
|
<p tal:condition="event/place" class="place" tal:content="event/place"></p>
|
|
<a href="#" tal:attributes="href event/absolute_url">Détail de l'événement</a>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
jq('#tabellio-agenda tbody a').click(
|
|
function(event) {
|
|
eventdiv = jq('#'+this.href.split('#')[1]);
|
|
if (eventdiv.css('display') != 'none') {
|
|
eventdiv.fadeOut();
|
|
return false;
|
|
}
|
|
jq('#month-events div').hide();
|
|
eventdiv.click(function(event){jq(this).hide();});
|
|
eventdiv.css('position', 'absolute').css(
|
|
'top', 6+jq(this).position().top).css(
|
|
'left', 6+jq(this).position().left).fadeIn()
|
|
return false;
|
|
});
|
|
</script>
|
|
|
|
</div> <!-- not:view/as_list -->
|
|
|
|
|
|
<div tal:condition="python: view.as_list() or view.as_seances()">
|
|
|
|
<div>
|
|
<a href="#" rel="nofollow"
|
|
title="Previous month"
|
|
id="agenda-calendar-previous"
|
|
tal:define="prevMonthMonth view/prevMonthMonth;
|
|
prevMonthYear view/prevMonthYear"
|
|
tal:attributes="href string:?year=${prevMonthYear}&month=${prevMonthMonth}"
|
|
i18n:attributes="title title_previous_month;">«</a>
|
|
<span i18n:translate="" tal:omit-tag="">
|
|
<span i18n:name="monthname" i18n:translate=""
|
|
tal:content="view/monthName"
|
|
tal:omit-tag="">monthname</span>
|
|
<span i18n:name="year" i18n:translate="" tal:content="view/year" tal:omit-tag="">year</span>
|
|
</span>
|
|
|
|
<a href="#" rel="nofollow" title="Next month" id="agenda-calendar-next"
|
|
tal:define="nextMonthMonth view/nextMonthMonth;
|
|
nextMonthYear view/nextMonthYear"
|
|
tal:attributes="href string:?year=${nextMonthYear}&month=${nextMonthMonth}"
|
|
i18n:attributes="title title_next_month;">»</a>
|
|
</div>
|
|
|
|
<table id="events-table-list" tal:condition="view/as_list">
|
|
<tr tal:repeat="event view/getMonthEvents"
|
|
tal:attributes="id string:event-${event/id};
|
|
class event/klass">
|
|
<td class="date"><span tal:content="event/longdatetime"/></td>
|
|
<td>
|
|
<h3 tal:content="event/title"/>
|
|
<p tal:condition="event/description" class="description" tal:content="event/description"></p>
|
|
<a href="#" tal:attributes="href event/absolute_url">Détails</a>
|
|
</td>
|
|
<td>
|
|
<p tal:condition="event/place" class="place" tal:content="event/place"></p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table id="events-table-seances" tal:condition="view/as_seances">
|
|
<tr tal:repeat="event view/getMonthEvents"
|
|
tal:attributes="id string:event-${event/id};
|
|
class event/klass">
|
|
<td class="date"><a tal:attributes="href event/absolute_url"><span tal:content="event/shortdatetime"/></a></td>
|
|
<td class="streaming"><a href="#">Streaming</a></td>
|
|
<td class="cri"><a href="#">Compte-rendu intégral</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
<div tal:replace="structure provider:plone.belowcontentbody" />
|
|
|
|
</tal:main-macro>
|
|
</metal:main>
|
|
|
|
</body>
|
|
</html>
|