homepage adjustments

This commit is contained in:
Frédéric Péters 2017-09-02 10:17:34 +02:00
parent 4f3e9334d1
commit 3b391e3544
1 changed files with 13 additions and 12 deletions

View File

@ -17,7 +17,7 @@
<div tal:replace="structure provider:plone.abovecontentbody" />
<div id="home-first-part" tal:condition="python: context.getId() == 'accueil-dev'">
<div id="home-first-part" tal:condition="python: context.getId() == 'accueil'">
<div id="slider">
<ul class="slider-list">
<tal:entry tal:repeat="slide view/slider_items">
@ -56,7 +56,7 @@ jQuery(document).ready(function(){
</script>
</div> <!-- # home-first-part -->
<div tal:condition="python: context.getId() != 'accueil-dev'">
<div tal:condition="python: context.getId() != 'accueil'">
<img name="SLIDESIMG" width="510" height="355" tal:attributes="src view/firstpic_url" alt=""/>
<!-- JavaScript Slideshow by Patrick Fitzgerald http://slideshow.barelyfitz.com/ -->
@ -89,20 +89,20 @@ SLIDES.loop();
// ]]></script>
</div>
<div id="pfbhome-2ndpart" tal:condition="python: context.getId() == 'accueil-dev'">
<div id="pfbhome-2ndpart" tal:condition="python: context.getId() == 'accueil'">
<dl class="enableFormTabbing" id="home-tabs">
<tal:block tal:define="homenews view/homenews" tal:condition="homenews">
<dt>L'actualité du Parlement</dt>
<dd id="hp-actu">
<img tal:attributes="src string: ${homenews/absolute_url}/pic" alt=""/>
<div tal:condition="homenews/homepage_text">
<h2 tal:content="homenews/Title">titre</h2>
<div tal:content="structure homenews/homepage_text/output">
plop
</div>
</div>
<a class="more-link" href="#" tal:attributes="href homenews/absolute_url">plus</a>
<ul>
<tal:entry tal:repeat="news homenews">
<li tal:define="oddrow repeat/news/odd;" tal:attributes="class python: oddrow and 'odd' or 'even'">
<h4><a tal:attributes="href news/absolute_url" tal:content="news/Title">actu</a></h4>
</li>
</tal:entry>
</ul>
<a class="more-link" href="/activites/">plus d'actualités</a>
</dd>
</tal:block>
<tal:block tal:define="events view/get_coming_day_events" tal:condition="events">
@ -115,8 +115,8 @@ SLIDES.loop();
</div></a>
</div>
<div tal:repeat="event events" tal:attributes="class string:event-description ${event/klass}">
<h3 class="event-title">Prochain événement :<br/><span class="event-type-square">■</span><span tal:replace="event/Title"/></h3>
<div>
<div class="event-hour" tal:condition="event/start/hour">À <span tal:content="event/start/hour">14</span> heures <span tal:condition="event/start/minute" tal:content="event/start/minute">00</span></div>
<div class="place" tal:content="event/place">Salle des séances - Hôtel de Ligne</div>
<div class="description">
@ -137,6 +137,7 @@ SLIDES.loop();
<h4><a href="#" tal:attributes="href doc/getURL" tal:content="python: doc.getObject().reftitle">Proposition de décret - 123 (2010-2011) n° 1</a></h4>
<p tal:content="doc/Title">Proposition de décret visant à élargir la définition des primo-arrivants
dans l'enseignement de la Communauté française.</p>
<span style="display:none" tal:content="python: doc.dateDoc"></span>
</div></li>
</tal:entry>
</ul>