This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
tabellio.contest/tabellio/contest/contest_templates/participants.pt

74 lines
2.4 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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.contest">
<body>
<metal:main fill-slot="main">
<tal:main-macro metal:define-macro="main"
tal:define="toLocalizedTime nocall:context/@@plone/toLocalizedTime">
<div tal:replace="structure provider:plone.abovecontenttitle" />
<h1 class="documentFirstHeading" tal:content="string:${context/title} - Participants" />
<div tal:replace="structure provider:plone.belowcontenttitle" />
<div tal:replace="structure provider:plone.abovecontentbody" />
<p tal:condition="view/has_winners">
Il y a des gagnants : <span tal:repeat="winner view/winners">
<a tal:attributes="href winner/id"
tal:content="winner/name"></a></span>
</p>
<p tal:condition="not:context/active">
<form method="post" action="@@pick">
<button>Tirer un gagnant au sort</button>
</form>
</p>
<style type="text/css">
.removed {
text-decoration: line-through;
}
table#contest-participants tr.winner,
table#contest-participants tr.winner td {
background: gold;
}
</style>
<table id="contest-participants" class="listing">
<thead>
<tr>
<td></td>
<th>Nom</th>
<th>Localité</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr tal:repeat="participant context/objectValues"
tal:attributes="class participant/classes">
<td><span tal:condition="participant/is_correct"></span></td>
<td tal:content="participant/name"></td>
<td tal:content="participant/locality"></td>
<td>
<a href="#" tal:attributes="href participant/id">voir</a>
<a href="#" tal:condition="not:participant/removed"
tal:attributes="href string:${participant/id}/@@remove">éliminer</a>
</td>
</tr>
</tbody>
</table>
<div tal:replace="structure provider:plone.belowcontentbody" />
</tal:main-macro>
</metal:main>
</body>
</html>