source: Dev/trunk/src/client/qed-client/pages/templates/question.html @ 492

Last change on this file since 492 was 492, checked in by hendrikvanantwerpen, 11 years ago
  • Enable/disable buttons on content change.
  • One place to do date formatting, because it was going wrong again.
  • Serialize questions in survey properly.
  • _ComplexValueMixin consumes submit events, but does trigger outer forms if present.
  • Trigger dialog show/hide for login only after previous effect is finished.
  • Check that documents are actually valid, not just that validator returned a result.
  • Validate email and timestamp formats.
  • Prepared for live runs.
File size: 2.2 KB
Line 
1<div class="orange">
2    <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'">
3        <h2>
4            <span class="rftIcon rftIconSurvey"></span>
5            <span class="headerText"><span data-dojo-attach-point="titleNode">Question title</span> [Editing]</span>
6        </h2>
7    </div>
8    <form data-dojo-type="dijit/form/Form"
9         data-dojo-props="region:'left'"
10         data-dojo-attach-point="propertiesForm"
11         data-dojo-attach-event="onSubmit:_ignore">
12        <div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline'" style="width: 300px;">
13            <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">
14                <div data-dojo-type="../model/widgets/QuestionEditorToolkit"
15                     data-dojo-attach-point="QuestionEditorToolkitNode"></div>
16            </div>
17            <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'">
18                <button data-dojo-type="dijit/form/Button"
19                        data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconAccept'"
20                        data-dojo-attach-point="saveBtn"
21                        data-dojo-attach-event="onClick:_onSave">
22                  Save</button>
23                <button data-dojo-type="dijit/form/Button"
24                        data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconAccept'"
25                        data-dojo-attach-point="saveAndCloseBtn"
26                        data-dojo-attach-event="onClick:_onSaveAndClose">
27                  Save &amp; Close</button>
28                <button data-dojo-type="dijit/form/Button"
29                        data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconCancel'"
30                        data-dojo-attach-point="discardBtn"
31                        data-dojo-attach-event="onClick:_onDiscard">
32                  Discard &amp; Close</button>
33            </div>
34        </div>
35    </form>
36    <div data-dojo-type="../model/widgets/QuestionEditorPreview"
37         data-dojo-attach-point="contentList"
38         data-dojo-props="name:'content',delay:5,region:'center'"></div>
39</div>
Note: See TracBrowser for help on using the repository browser.