Changeset 372
- Timestamp:
- 07/23/12 17:03:47 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client/rft
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/question.html
r366 r372 8 8 </div> 9 9 <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'left', design:'headline'" style="width: 300px;"> 10 11 10 <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"> 12 11 <div id="QuestionEditorToolkit"></div> -
Dev/branches/rest-dojo-ui/client/rft/pages/question.js
r366 r372 16 16 function(declare, lang, Deferred, LineWithActionsWidget, store, _Page, api, content, registry, on, behavior, query){ 17 17 return declare('rft.pages.question', [_Page], { 18 object: null, 19 preview: null, 18 question: null, 19 _toolkit: null, 20 _preview: null, 20 21 21 22 onVisit: function() { … … 23 24 Deferred.when(store.get(this.pageArgs.uid)) 24 25 .then(lang.hitch(this, function(obj) { 25 this.object = obj; 26 this.question = obj; 27 this._refresh(); 26 28 })); 27 29 } else { 28 30 throw new Error("Error: no reference to object set!"); 29 31 } 30 32 this._setupEditor(); 31 33 this._setupButtons(); 32 this._setupEditor();33 34 }, 34 35 onLeave: function() { 35 36 this.inherited(arguments); 37 }, 38 _refresh: function () { 39 this._toolkit.propertiesForm.set('value', this.question); 36 40 }, 37 41 _setupButtons: function() { … … 52 56 }, 53 57 _setupEditor: function() { 54 this.toolkit = new rft.ui.QuestionEditorToolkit(); 55 this.toolkit.placeAt("QuestionEditorToolkit"); 58 // this.toolkit = new rft.ui.QuestionEditorToolkit( { question: this.question } ); 59 this._toolkit = new rft.ui.QuestionEditorToolkit(); 60 this._toolkit.placeAt("QuestionEditorToolkit"); 56 61 57 this. preview = new rft.ui.QuestionEditorPreview();58 this. preview.placeAt("QuestionEditorPreview");62 this._preview = new rft.ui.QuestionEditorPreview(); 63 this._preview.placeAt("QuestionEditorPreview"); 59 64 } 60 65 }); -
Dev/branches/rest-dojo-ui/client/rft/ui/AccordionList.js
r316 r372 11 11 idProperty: null, 12 12 categoryProperty: null, 13 titleProperty: null,13 titleProperty: "test", 14 14 actions: null, 15 15 _widgets: null, -
Dev/branches/rest-dojo-ui/client/rft/ui/QuestionEditorToolkit.js
r366 r372 14 14 15 15 templateString: template, 16 question: null, 17 16 18 postCreate: function(){ 17 19 this.contentSource = new dojo.dnd.Source(this.ToolkitContentSourceNode, { -
Dev/branches/rest-dojo-ui/client/rft/ui/templates/QuestionEditorToolkit.html
r366 r372 2 2 <div data-dojo-type="dijit.layout.AccordionContainer" class="orange"> 3 3 <div data-dojo-type="dijit.layout.ContentPane" title="Properties" data-dojo-props="iconClass:'rftIcon rftIconProperties'"> 4 <form id="propertiesForm">4 <div id="propertiesForm" data-dojo-type="dijit.form.Form" data-dojo-attach-point="propertiesForm" data-rft-attach-event="onSubmit:onSave"> 5 5 <fieldset class="align"> 6 <label for="propertiesTitle">Title:</label><input data-dojo-type="dijit.form.TextBox" id="propertiesTitle" />7 <label for="propertiesCode">Code:</label><input data-dojo-type="dijit.form.TextBox" id="propertiesCode" />8 <label for="propertiesCategories">Categories:</label><input data-dojo-type="dijit.form.FilteringSelect" id="propertiesCategories" />9 <label for="propertiesTopic">Topic:</label><input data-dojo-type="dijit.form.FilteringSelect" id="propertiesTopic" />10 <label for="propertiesDescription">Description:</label><textarea data-dojo-type="dijit.form.Textarea" id="propertiesDescription" ></textarea>6 <label for="propertiesTitle">Title:</label><input data-dojo-type="dijit.form.TextBox" id="propertiesTitle" name="title"/> 7 <label for="propertiesCode">Code:</label><input data-dojo-type="dijit.form.TextBox" id="propertiesCode" name= "code"/> 8 <label for="propertiesCategories">Categories:</label><input data-dojo-type="dijit.form.FilteringSelect" id="propertiesCategories" name="categories"/> 9 <label for="propertiesTopic">Topic:</label><input data-dojo-type="dijit.form.FilteringSelect" id="propertiesTopic" name="topic"/> 10 <label for="propertiesDescription">Description:</label><textarea data-dojo-type="dijit.form.Textarea" id="propertiesDescription" name="description"></textarea> 11 11 </fieldset> 12 </ form>12 </div> 13 13 </div> 14 14
Note: See TracChangeset
for help on using the changeset viewer.