56 lines
2.1 KiB
XML
56 lines
2.1 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:content-core fill-slot="content-core">
|
|
<metal:content-core define-macro="content-core">
|
|
<metal:field use-macro="python:context.widget('text', mode='view')">
|
|
Body text
|
|
</metal:field>
|
|
|
|
<div id="deputies-list">
|
|
<tal:entry tal:repeat="deputy view/deputies">
|
|
<div class="deputy-popup" style="display: none" tal:attributes="id string:siege${deputy/seat_number}">
|
|
<div tal:attributes="class string:polgroup ${deputy/polgroup/to_object/id}">
|
|
<span class="seat-number" tal:content="deputy/seat_number"/>
|
|
<span tal:condition="deputy/polgroup" class="polgroup"
|
|
tal:content="deputy/polgroup/to_object/title"/>
|
|
</div>
|
|
<img tal:attributes="src string:${deputy/id}/photo"/>
|
|
<h3 tal:content="deputy/Title"/>
|
|
<a tal:attributes="href string:${deputy/id}/">Voir sa fiche</a>
|
|
<span class="closediv"/>
|
|
</div>
|
|
</tal:entry>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
jq('#hemicycle area').click(
|
|
function(event) {
|
|
var url = $(this).attr('href');
|
|
parldiv = jq('#'+url.split('#')[1]);
|
|
if (parldiv.css('display') != 'none') {
|
|
parldiv.fadeOut();
|
|
return false;
|
|
}
|
|
jq('#deputies-list div').hide();
|
|
jq('#deputies-list div div').show();
|
|
parldiv.click(function(event){jq(this).hide();});
|
|
parldiv.css('position', 'absolute').css(
|
|
'top', 6+jq(this).position().top).css(
|
|
'left', 6+jq(this).position().left).fadeIn()
|
|
return false;
|
|
});
|
|
</script>
|
|
|
|
</metal:content-core>
|
|
</metal:content-core>
|
|
|
|
</body>
|
|
</html>
|