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