68 lines
2.6 KiB
XML
68 lines
2.6 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="plone">
|
|
|
|
<body>
|
|
|
|
<metal:main fill-slot="main">
|
|
<tal:main-macro metal:define-macro="main">
|
|
<tal:block tal:define="cache view/cache"/>
|
|
<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 class="deputies-and-others">
|
|
<dl class="enableFormTabbing" id="deputies-tabs">
|
|
<div tal:omit-tag="" tal:repeat="item python: [x for x in context.values() if x.portal_type == 'Document']">
|
|
<dt tal:attributes="id string:fieldsetlegend-${item/id}" tal:content="item/Title">title</dt>
|
|
<dd tal:attributes="id string:fieldset-${item/id}">
|
|
<div tal:replace="structure item/getText"/>
|
|
</dd>
|
|
</div>
|
|
|
|
<dt id="fieldsetlegend-photographies">Répertoire photos de A-Z</dt>
|
|
<dd id="fieldset-photographies">
|
|
<script type="text/javascript">
|
|
/* delay loading of deputies photos after the page is fully loaded */
|
|
jQuery(window).load(function(){
|
|
$('#fieldset-photographies a').each(function() {
|
|
$(this).find('span').before('<img src="' + $(this).attr('data-src') + '"/>');
|
|
});
|
|
});
|
|
</script>
|
|
<tal:block tal:repeat="entry view/sortedDeputies">
|
|
<div tal:condition="entry/picture">
|
|
<a tal:attributes="href entry/absolute_url;
|
|
data-src string:${entry/id}/photo;">
|
|
<span tal:content="entry/Title"/>
|
|
</a>
|
|
</div>
|
|
</tal:block>
|
|
<br style="clear: both;"/>
|
|
</dd>
|
|
|
|
<dt id="fieldsetlegend-parlementaires">Parlementaires</dt>
|
|
<dd id="fieldset-parlementaires">
|
|
<input name="fieldset.current" type="hidden" value="#fieldset-parlementaires"/>
|
|
<div id="stats"><a href="statistiques/"><span>Statistiques</span></a></div>
|
|
<div tal:replace="structure view/renderDeputyListForm"/>
|
|
|
|
<a href="parlementaires.csv" id="export-results" class="button">Exporter la liste des parlementaires</a>
|
|
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div tal:replace="structure provider:plone.belowcontentbody" />
|
|
|
|
</tal:main-macro>
|
|
</metal:main>
|
|
|
|
</body>
|
|
</html>
|