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/view.pt

66 lines
2.2 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="context/title" />
<div tal:replace="structure provider:plone.belowcontenttitle" />
<p tal:content="context/intro">
Lorem ipsum.
</p>
<div tal:replace="structure provider:plone.abovecontentbody" />
<form tal:condition="context/active" action="@@play" method="post">
<p tal:content="context/question1">
</p>
<span tal:repeat="answer view/question1answerslist">
<label><input type="radio" name="answer1" tal:attributes="value answer"/>
<span tal:replace="answer"></span></label>
</span>
<p tal:content="context/question2">
</p>
<span tal:repeat="answer view/question2answerslist">
<label><input type="radio" name="answer2" tal:attributes="value answer"/>
<span tal:replace="answer"></span></label>
</span>
<p><label>Nom : <input name="name"/></label></p>
<p><label>Adresse : <input name="address"/></label></p>
<p><label>Code postal : <input name="zipcode"/></label></p>
<p><label>Localité : <input name="locality"/></label></p>
<p><label>Tél./GSM : <input name="phone"/></label></p>
<p><label>Courriel : <input name="email"/></label></p>
<input type="submit" name="submit" value="Envoyer"/>
</form>
<div tal:condition="not:context/active">
Ce concours est fermé.
</div>
<div tal:replace="structure provider:plone.belowcontentbody" />
</tal:main-macro>
</metal:main>
</body>
</html>