codekasten/umfrage_kirchenplatz2012/templates/question.html

52 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:py="http://genshi.edgewall.org/"
lang="de">
<xi:include href="layout.html" />
<head/>
<body>
<h1>${question.text}</h1>
<form action="${base_url}" method="POST">
<input type="hidden" name="session_id" value="${session.name}" />
<input type="hidden" name="question_id" value="${question.id}" />
<table class="options">
<colgroup><col py:for="option in options" width="${95/len(options)}%" /></colgroup>
<trRenderOptionTitle />
<tr>
<td py:for="column, option in enumerate(options)" class="answer column${column}">
<label for="option_${option.id}_text">Bewertung:</label><br/>
<textarea rows="5" style="width:90%" id="option_${option.id}_text" name="option_${option.id}_text"></textarea>
<br/>
<ul class="quality">
<li py:for="(key, text) in question.quality_levels">
<input type="radio" name="option_${option.id}_quality" value="${key}">
<span class="key">${unicode(key)}</span>
<span class="text">${unicode(text)}</span>
</input><br/>
</li>
</ul>
</td>
</tr>
<tr>
<td colspan="${len(options) / 2}" style="text-align:left">
<input py:if="previous_question" type="submit" name="go_backward" value="zur&uuml;ck" /></td>
<td colspan="${len(options) - len(options) / 2}" style="text-align:right">
<input py:if="next_question" type="submit" name="go_forward" value="weiter" />
<input py:if="not next_question" type="submit" name="go_forward" value="abschlie&szlig;en" />
</td>
</tr>
<tr><td colspan="${len(options)}"><hr/></td></tr>
<tr><th colspan="${len(options)}">Kurzbeschreibung der Planungsalternativen</th></tr>
<trRenderOptionImage />
<trRenderOptionText />
</table>
</form>
</body>
</html>