1.1 --- a/examples/Common/Questionnaire/Resources/question_template.xhtml Mon Oct 03 19:13:51 2005 +0000
1.2 +++ b/examples/Common/Questionnaire/Resources/question_template.xhtml Mon Oct 03 19:14:10 2005 +0000
1.3 @@ -21,45 +21,43 @@
1.4 <tbody template:element="question">
1.5 <tr>
1.6 <th class="question">Question</th>
1.7 - <td class="question" template:attribute="question-text"><textarea cols="40" rows="4"
1.8 - name="{template:this-attribute()}" template:value="$this-value">Question</textarea></td>
1.9 + <td class="question"><textarea cols="40" rows="4" template:attribute-area="question-text,insert"
1.10 + name="...">Question</textarea></td>
1.11 <td class="question-options">
1.12 - <input type="submit" value="Remove question" name="remove-question={template:this-element()}"
1.13 + <input type="submit" value="Remove question" name="..." template:selector-field="remove-question"
1.14 /></td>
1.15 </tr>
1.16 <tr>
1.17 <th class="response">Response</th>
1.18 - <td class="response" template:attribute="question-type"><input type="radio"
1.19 - name="{template:this-attribute()}" value="text" template:expr-attr="checked"
1.20 - template:expr="$this-value = 'text'" /> Text</td>
1.21 + <td class="response"><input type="radio" template:attribute-button="question-type,text,checked"
1.22 + name="..." value="..." /> Text</td>
1.23 <td></td>
1.24 </tr>
1.25 <tr>
1.26 <td class="response"></td>
1.27 - <td class="response" template:attribute="response-text"><input type="text" size="40"
1.28 - name="{template:this-attribute()}" value="{$this-value}" /></td>
1.29 + <td class="response"><input type="text" size="40" template:attribute-field="response-text"
1.30 + name="..." value="..." /></td>
1.31 <td></td>
1.32 </tr>
1.33 <tr>
1.34 <td class="response"></td>
1.35 - <td class="response" template:attribute="question-type"><input type="radio"
1.36 - name="{template:this-attribute()}" value="choice" template:expr-attr="checked"
1.37 - template:expr="$this-value = 'choice'" /> Multiple choice</td>
1.38 + <td class="response"><input type="radio" template:attribute-button="question-type,choice,checked"
1.39 + name="..." value="choice" /> Multiple choice</td>
1.40 <td></td>
1.41 </tr>
1.42 <tr template:element="choice">
1.43 <td class="response"></td>
1.44 - <td class="choice" template:attribute="response-choice"><input type="text" size="40"
1.45 - name="{template:this-attribute()}" value="{$this-value}" /></td>
1.46 + <td class="choice"><input type="text" size="40" template:attribute-field="response-choice"
1.47 + name="..." value="..." /></td>
1.48 <td class="choice-options">
1.49 - <input type="submit" value="Remove choice" name="remove-choice={template:this-element()}"
1.50 + <input type="submit" value="Remove choice" name="..." template:selector-field="remove-choice"
1.51 /></td>
1.52 </tr>
1.53 <tr>
1.54 <td class="response"></td>
1.55 <td class="response"></td>
1.56 <td class="response">
1.57 - <input type="submit" value="Add choice" name="add-choice={template:this-element()}"
1.58 + <input type="submit" value="Add choice" name="..." template:selector-field="add-choice,choice"
1.59 /></td>
1.60 </tr>
1.61 </tbody>