<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>Dear Candidate - ${page.title}</title>
<link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/static/css/grids.css')}" />
<link rel="alternate" title="CaroCandidato Recent Activity" href="/feed" type="application/rss+xml" />
</head>
<body>
<ul id="submenu" py:if="'editor' in tg.identity.groups">
<li py:if="'update_page' in tg.identity.permissions"><a href="${tg.url('/wiki/edit/%s' % page.name)}">Edit</a></li>
</ul>
<div class="wiki_widget">
${HTML(page.formatted_text)}
</div>
<div class="wiki_widget">
<h1>Search in your area</h1>
<div id="who_to_vote">
<p py:content="ET(form.display(submit_text=submit_text, action=action))"></p>
</div>
</div>
<div py:if="len(current_elections)" class="list">
<h1>Active election</h1>
<div class="element" py:for="election in current_elections">
${ET(election_widget.display(election=election))}
</div>
</div>
<div py:if="len(passed_elections)" class="list">
<h1>Passed election</h1>
<div class="element" py:for="election in passed_elections">
${ET(election_widget.display(election=election))}
</div>
</div>
</body>
</html>