1 |
<html xmlns="http://www.w3.org/1999/xhtml"><head> |
2 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> |
3 |
<title>WOPI :: [% poll_name %] :: [% order %]</title> |
4 |
<link rel="stylesheet" href="style.css" type="text/css"> |
5 |
<script type="text/javascript" src="preview.js"></script></head> |
6 |
|
7 |
<body onLoad="preview_text('var'); preview_html('q'); preview_html('a');"> |
8 |
|
9 |
<div class="right"> |
10 |
[% INCLUDE "question_list.html" %] |
11 |
[% INCLUDE "hint_edit.html" %] |
12 |
</div> |
13 |
|
14 |
<div class="left"> |
15 |
|
16 |
<form action="[% self %]" method="get"> |
17 |
|
18 |
<p> |
19 |
<label for="var" class="note">Variable name:</label> |
20 |
<input tabindex="1" id="var" name="var" size="5" onkeyup="preview_text('var');" onchange="peview_text('var');" value="v[% order %]"> |
21 |
</p> |
22 |
|
23 |
<p> |
24 |
|
25 |
</p> |
26 |
<label for="text" class="note">Question text (preview below):</label><br> |
27 |
<textarea tabindex="3" id="q" name="q" rows="2" cols="50" onkeyup="preview_html('q');">[% q %]</textarea> |
28 |
<p> |
29 |
<label for="text" class="note">Answer text (preview below):</label><br> |
30 |
<textarea tabindex=43" id="a" name="a" rows="10" cols="50" onkeyup="preview_html('a');">[% a %]</textarea> |
31 |
</p> |
32 |
|
33 |
<input style="font-weight: bold;" type="submit" name="save" value=" Save "> |
34 |
<span id="var_preview"></span> |
35 |
<input type="hidden" name="order" value="[% order %]"> |
36 |
<input type="hidden" name="do" value="save_question"> |
37 |
</form> |
38 |
|
39 |
</div> |
40 |
|
41 |
<div class="preview"> |
42 |
<div id="q_preview"></div> |
43 |
|
44 |
<div id="a_preview"></div> |
45 |
</div> |
46 |
|
47 |
<div style="float: left; clear: left;"> |
48 |
[% USE dumper %] |
49 |
<small> |
50 |
<pre> |
51 |
[% dumper.dump(poll.questions) %] |
52 |
</pre> |
53 |
</small> |
54 |
</div> |
55 |
|
56 |
</body> |
57 |
</html> |