paulb@31 | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
paulb@31 | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" |
paulb@31 | 3 | "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> |
paulb@31 | 4 | <html xmlns="http://www.w3.org/1999/xhtml" |
paulb@31 | 5 | xmlns:template="http://www.boddie.org.uk/ns/xmltools/template"> |
paulb@31 | 6 | <head> |
paulb@31 | 7 | <title>Questionnaire Editor</title> |
paulb@31 | 8 | <meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" /> |
paulb@91 | 9 | <link xmlns:xlink="http://www.w3.org/1999/xlink" href="styles/styles.css" |
paulb@31 | 10 | rel="stylesheet" type="text/css" /> |
paulb@31 | 11 | </head> |
paulb@31 | 12 | |
paulb@31 | 13 | <body template:element="questionnaire"> |
paulb@31 | 14 | <h1>Questionnaire Editor</h1> |
paulb@31 | 15 | |
paulb@31 | 16 | <p>Enter questions and possible responses below.</p> |
paulb@31 | 17 | |
paulb@70 | 18 | <form method="POST" action=""> |
paulb@31 | 19 | |
paulb@31 | 20 | <table class="questionnaire"> |
paulb@31 | 21 | <tbody template:element="question"> |
paulb@31 | 22 | <tr> |
paulb@31 | 23 | <th class="question">Question</th> |
paulb@31 | 24 | <td class="question" template:attribute="question-text"><textarea cols="40" rows="4" |
paulb@31 | 25 | name="{template:field-name()}" template:value="$this-value">Question</textarea></td> |
paulb@31 | 26 | <td class="question-options"> |
paulb@31 | 27 | <input type="submit" value="Remove question" name="remove-question={template:this-position()}" |
paulb@31 | 28 | /></td> |
paulb@31 | 29 | </tr> |
paulb@31 | 30 | <tr> |
paulb@31 | 31 | <th class="response">Response</th> |
paulb@31 | 32 | <td class="response" template:attribute="question-type"><input type="radio" |
paulb@31 | 33 | name="{template:field-name()}" value="text" template:expr-attr="checked" |
paulb@31 | 34 | template:expr="$this-value = 'text'" /> Text</td> |
paulb@31 | 35 | <td></td> |
paulb@31 | 36 | </tr> |
paulb@31 | 37 | <tr> |
paulb@31 | 38 | <td class="response"></td> |
paulb@31 | 39 | <td class="response" template:attribute="response-text"><input type="text" size="40" |
paulb@31 | 40 | name="{template:field-name()}" value="{$this-value}" /></td> |
paulb@31 | 41 | <td></td> |
paulb@31 | 42 | </tr> |
paulb@31 | 43 | <tr> |
paulb@31 | 44 | <td class="response"></td> |
paulb@31 | 45 | <td class="response" template:attribute="question-type"><input type="radio" |
paulb@31 | 46 | name="{template:field-name()}" value="choice" template:expr-attr="checked" |
paulb@31 | 47 | template:expr="$this-value = 'choice'" /> Multiple choice</td> |
paulb@31 | 48 | <td></td> |
paulb@31 | 49 | </tr> |
paulb@31 | 50 | <tr template:element="choice"> |
paulb@31 | 51 | <td class="response"></td> |
paulb@31 | 52 | <td class="choice" template:attribute="response-choice"><input type="text" size="40" |
paulb@31 | 53 | name="{template:field-name()}" value="{$this-value}" /></td> |
paulb@31 | 54 | <td class="choice-options"> |
paulb@31 | 55 | <input type="submit" value="Remove choice" name="remove-choice={template:this-position()}" |
paulb@31 | 56 | /></td> |
paulb@31 | 57 | </tr> |
paulb@31 | 58 | <tr> |
paulb@31 | 59 | <td class="response"></td> |
paulb@31 | 60 | <td class="response"></td> |
paulb@31 | 61 | <td class="response"> |
paulb@31 | 62 | <input type="submit" value="Add choice" name="add-choice={template:this-position()}" |
paulb@31 | 63 | /></td> |
paulb@31 | 64 | </tr> |
paulb@31 | 65 | </tbody> |
paulb@31 | 66 | </table> |
paulb@31 | 67 | |
paulb@31 | 68 | <p> |
paulb@31 | 69 | <input type="submit" value="Add question" name="add-question" /> to make |
paulb@31 | 70 | the questionnaire longer.</p> |
paulb@31 | 71 | |
paulb@31 | 72 | <p> |
paulb@31 | 73 | <input type="submit" value="Finish" name="finish" /> when all the questions |
paulb@31 | 74 | and responses are ready.</p> |
paulb@31 | 75 | </form> |
paulb@31 | 76 | </body> |
paulb@31 | 77 | </html> |