source: Dev/trunk/src/client/qed-client/model/widgets/questions/templates/ScaleInputConfigWidget.html

Last change on this file was 506, checked in by hendrikvanantwerpen, 11 years ago
  • Added subcodes to schema and config widgets.
  • Disallow empty strings in schema and strip objects before sending them to the server.
  • Finally managed proper change events in lists and complexvalues.
File size: 1.6 KB
Line 
1<form class="${baseClass}">
2  <table>
3    <thead>
4      <tr>
5        <th class="subcode"></th>
6        <th class="item"></th>
7        <th data-dojo-attach-point="minLabelNode"
8            class="minLabel">
9          <div name="minLabel"
10               data-dojo-type="dijit/form/TextBox"
11               data-dojo-props="placeholder: 'Minimum label'"></div>
12        </th>
13        <th class="min" data-dojo-attach-point="minNode">
14          <div name="min"
15               data-dojo-type="dijit/form/NumberTextBox"
16               data-dojo-props="required: true, placeholder: 'Minimum value'"></div>
17        </th>
18        <th>...</th>
19        <th class="max" data-dojo-attach-point="maxNode">
20          <div name="max"
21               data-dojo-type="dijit/form/NumberTextBox"
22               data-dojo-props="required: true, placeholder: 'Maximum value'"></div>
23        </th>
24        <th data-dojo-attach-point="maxLabelNode" class="maxLabel">
25          <div name="maxLabel"
26               data-dojo-type="dijit/form/TextBox"
27               data-dojo-props="placeholder: 'Maximum label'"></div>
28        </th>
29        <th class="na">
30          <div name="naLabel"
31               data-dojo-attach-point="naTextBox"
32               data-dojo-attach-event="onChange: onNAChange"
33               data-dojo-type="dijit/form/TextBox"
34               data-dojo-props="placeholder: 'N/A label', intermediateChanges: true"></div>
35        </th>
36      </tr>
37    </thead>
38    <tbody data-dojo-attach-point="itemsNode">
39    </tbody>
40  </table>
41<div>
42  <button data-dojo-type="dijit/form/Button"
43          data-dojo-attach-event="onClick:onAddNewItem">
44    Click to add item</button>
45</div>
46</form>
Note: See TracBrowser for help on using the repository browser.