source: Dev/branches/rest-dojo-ui/client/rft/pages/survey.html @ 403

Last change on this file since 403 was 382, checked in by hendrikvanantwerpen, 13 years ago
  • Added description to survey properties form.
  • Added crude loading indicator to TabbedQuestionWidget?.
  • Organized run.js: dependencies in alpha order and only declaratively used widgets, removed other dependencies, they should be in the modules where they are used.
  • ElasticReadStore? and ElasticSearchFilteringSelect? was a mix of old dojo.declare/dojo.require and new AMD style. Changed it completely to AMD style (benefits builds later as well).
  • Changed questions view so questions without topics/categories show up as well in the view.
File size: 3.0 KB
Line 
1<div data-dojo-type="rft.pages.survey" class="blue">
2    <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'center'" style="height: 500px;">
3
4        <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'">
5            <h2>
6                <span class="rftIcon rftIconSurvey"></span>
7                <span class="headerText" data-rft-attach-point="titleNode">Survey Editor</span>
8            </h2>
9        </div>
10       
11        <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'center'">
12            <div data-rft-attach-point="questionBrowser"></div>
13        </div>
14       
15        <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'right'" style="width: 300px">
16            <div data-rft-attach-point="surveyListViewNode" class="rftSurveyListView">
17            </div>
18
19            <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region: 'bottom'">
20                <button data-dojo-type="dijit.form.Button"
21                        data-rft-attach-event="onClick:_onShowProperties"
22                        data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconProperties'">
23                    Properties</button>
24                <button data-dojo-type="dijit.form.Button"
25                        data-rft-attach-event="onClick:_onSave"
26                        data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconAccept'">
27                    Save Changes</button>
28                <button data-dojo-type="dijit.form.Button"
29                        data-rft-attach-event="onClick:_onDiscard"
30                        data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconCancel'">
31                    Discard changes</button>
32                <button data-dojo-type="dijit.form.Button"
33                        data-rft-attach-event="onClick:_onShowPreview"
34                        data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconPreview'">
35                    Preview</button>
36            </div>
37        </div>
38    </div>
39
40    <div data-dojo-type="dijit.Dialog"
41         title="Survey properties"
42         data-rft-attach-point="propertiesDialog"
43         data-rft-attach-event="onSubmit:_onPropertiesOk">
44
45        <form data-dojo-type="dijit.form.Form"
46              data-rft-attach-point="propertiesForm">
47            <label for="title">Title</label>
48            <input data-dojo-type="dijit.form.TextBox" name="title"/><br/>
49            <label for="description">Description</label>
50            <input data-dojo-type="dijit.form.Textarea" name="description"/><br/>
51        </form>
52           
53        <div>
54            <button data-dojo-type="dijit.form.Button"
55                    type="submit"
56                    data-rft-attach-event="onClick:_onPropertiesOk">
57                OK</button>
58            <button data-dojo-type="dijit.form.Button"
59                    type="button"
60                    data-rft-attach-event="onClick:_onPropertiesCancel">
61                Cancel</button>
62        </div>
63    </div>
64
65</div>
Note: See TracBrowser for help on using the repository browser.