46 lines
1.6 KiB
HTML
46 lines
1.6 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="${100/len(options)}%" /></colgroup>
|
|
<trRenderOptionTitle />
|
|
<tr>
|
|
<td py:for="column, option in enumerate(options)" class="answer column${column % 2}">
|
|
<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="radio">
|
|
<li py:for="(key, text) in question.quality_levels">
|
|
<input type="radio" name="option_${option.id}_quality" value="${key}">${unicode(text)}</input><br/>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="${len(options) / 2}" style="text-align:left">
|
|
<input py:if="previous_question" type="submit" class="submit" name="go_backward" value="zurück" /></td>
|
|
<td colspan="${len(options) - len(options) / 2}" style="text-align:right">
|
|
<input py:if="next_question" type="submit" class="submit" name="go_forward" value="weiter" /></td>
|
|
</tr>
|
|
<tr><td colspan="${len(options)}"><hr/></td></tr>
|
|
<trRenderOptionImage />
|
|
<trRenderOptionText />
|
|
</table>
|
|
</form>
|
|
|
|
</body>
|
|
</html>
|
|
|