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@268 | 24 | <td class="question"><textarea cols="40" rows="4" template:attribute-area="question-text,insert" |
paulb@268 | 25 | name="...">Question</textarea></td> |
paulb@31 | 26 | <td class="question-options"> |
paulb@268 | 27 | <input type="submit" value="Remove question" name="..." template:selector-field="remove-question" |
paulb@31 | 28 | /></td> |
paulb@31 | 29 | </tr> |
paulb@31 | 30 | <tr> |
paulb@31 | 31 | <th class="response">Response</th> |
paulb@268 | 32 | <td class="response"><input type="radio" template:attribute-button="question-type,text,checked" |
paulb@268 | 33 | name="..." value="..." /> Text</td> |
paulb@31 | 34 | <td></td> |
paulb@31 | 35 | </tr> |
paulb@31 | 36 | <tr> |
paulb@31 | 37 | <td class="response"></td> |
paulb@268 | 38 | <td class="response"><input type="text" size="40" template:attribute-field="response-text" |
paulb@268 | 39 | name="..." value="..." /></td> |
paulb@31 | 40 | <td></td> |
paulb@31 | 41 | </tr> |
paulb@31 | 42 | <tr> |
paulb@31 | 43 | <td class="response"></td> |
paulb@268 | 44 | <td class="response"><input type="radio" template:attribute-button="question-type,choice,checked" |
paulb@268 | 45 | name="..." value="choice" /> Multiple choice</td> |
paulb@31 | 46 | <td></td> |
paulb@31 | 47 | </tr> |
paulb@31 | 48 | <tr template:element="choice"> |
paulb@31 | 49 | <td class="response"></td> |
paulb@268 | 50 | <td class="choice"><input type="text" size="40" template:attribute-field="response-choice" |
paulb@268 | 51 | name="..." value="..." /></td> |
paulb@31 | 52 | <td class="choice-options"> |
paulb@268 | 53 | <input type="submit" value="Remove choice" name="..." template:selector-field="remove-choice" |
paulb@31 | 54 | /></td> |
paulb@31 | 55 | </tr> |
paulb@31 | 56 | <tr> |
paulb@31 | 57 | <td class="response"></td> |
paulb@31 | 58 | <td class="response"></td> |
paulb@31 | 59 | <td class="response"> |
paulb@268 | 60 | <input type="submit" value="Add choice" name="..." template:selector-field="add-choice,choice" |
paulb@31 | 61 | /></td> |
paulb@31 | 62 | </tr> |
paulb@31 | 63 | </tbody> |
paulb@31 | 64 | </table> |
paulb@31 | 65 | |
paulb@31 | 66 | <p> |
paulb@31 | 67 | <input type="submit" value="Add question" name="add-question" /> to make |
paulb@31 | 68 | the questionnaire longer.</p> |
paulb@31 | 69 | |
paulb@31 | 70 | <p> |
paulb@31 | 71 | <input type="submit" value="Finish" name="finish" /> when all the questions |
paulb@31 | 72 | and responses are ready.</p> |
paulb@31 | 73 | </form> |
paulb@31 | 74 | </body> |
paulb@31 | 75 | </html> |