Ignore:
Timestamp:
07/18/12 18:49:11 (13 years ago)
Author:
tjcschipper
Message:
  • AdaptiveForm? really isn't anything yet, but it's supposed to become a way to encapsulate forms that add/remove inputs based on other input's (selected) values.
  • Created a skeleton for the question editor. It's almost an exact copy of SurveyAdvanced?.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/pages/questions.js

    r343 r366  
    11define(['dojo/_base/declare','dojo/_base/lang','dojo/_base/event',
    2     'dojo/_base/Deferred','rft/store','rft/ui/_Page','rft/ui/AccordionList'],
    3     function(declare,lang,event,Deferred,store,_Page,AccordionList) {
     2    'dojo/_base/Deferred','rft/store','rft/ui/_Page','rft/ui/AccordionList', 'rft/content'],
     3    function(declare,lang,event,Deferred,store,_Page,AccordionList,content) {
    44        return declare('rft.pages.questions',[_Page],{
    55            constructor: function() {
     
    88            },
    99            onVisit: function() {
     10                debugger;
    1011                this._list = new AccordionList({
    1112                    actions: {
    12                         'Edit': lang.hitch(this,'_editQuestion')
     13                        'Edit': {
     14                            callback: lang.hitch(this,'_editQuestion'),
     15                            properties: {
     16                                blockButton: true,
     17                                icon: "Edit",
     18                                label: "Edit"
     19                            }
     20                        }
     21
     22                       
    1323                    },
    1424                    idProperty: store.idProperty,
     
    3242            },
    3343            _editQuestion: function(question) {
    34                 this.questionForm.reset();
    35                 this.questionWidget.set('value',question);
    36                 this.questionDialog.show();
     44                content.goTo("question", {uid: question._id});
     45                // this.questionForm.reset();
     46                // this.questionWidget.set('value',question);
     47                // this.questionDialog.show();
    3748            },
    3849            onSaveQuestion: function(evt) {
     
    5263            }
    5364        });
    54     });
     65});
Note: See TracChangeset for help on using the changeset viewer.