Changeset 364
- Timestamp:
- 07/17/12 16:49:30 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client/rft
- Files:
-
- 6 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/css/layout.css
r358 r364 484 484 overflow: hidden; 485 485 } 486 487 /* Generic list with lines */ 488 .claro .rftLineListView { 489 width: 400px; 490 max-height: 500px; 491 } 492 .claro .rftLineListView .rftLineListViewContent { 493 max-width: 400px; 494 overflow: auto; 495 } -
Dev/branches/rest-dojo-ui/client/rft/pages/session.html
r359 r364 27 27 <fieldset class="align"> 28 28 <label for="accountsInput">Add new</label> 29 <input type="text" data- dojo-type="dijit.form.TextBox" data-dojo-props="placeHolder: 'Enter email address here...'" />30 <button data- dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftBlockButton', class: 'green', iconClass: 'rftIcon rftIconPlus'">Invite</button>29 <input type="text" data-rft-attach-point="emailBox" data-dojo-type="dijit.form.TextBox" data-dojo-props="placeHolder: 'Enter email address here...'" /> 30 <button data-rft-attach-point="btnInvite" data-dojo-type="dijit.form.Button" data-rft-attach-event="onClick:onInvite" data-dojo-props="baseClass: 'rftBlockButton', class: 'green', iconClass: 'rftIcon rftIconPlus'">Invite</button> 31 31 <br/><br/> 32 33 <div data-rft-attach-point="listViewNode" class="rftLineListView"> 34 </div> 35 <!-- 32 36 <div data-dojo-type="rft.ui.List" data-dojo-props="region:'center'" style="width: 500px;"> 33 37 <div data-dojo-type="rft.ui.LineWithActionsWidget" data-dojo-props="title:'a.bezuijen@tudelft.nl', modifiers: 'green', actions: {'Cancel':{callback: function(){}, properties: {blockButton: false, icon: 'Delete', modifiers:'white'}}}"></div> 34 38 <div data-dojo-type="rft.ui.LineWithActionsWidget" data-dojo-props="title:'i.mayer@tudelft.nl', modifiers: 'green', actions: {'Cancel':{callback: function(){}, properties: {blockButton: false, icon: 'Delete', modifiers:'white'}}}"></div> 35 39 </div> 40 --> 36 41 </fieldset> 37 42 -
Dev/branches/rest-dojo-ui/client/rft/pages/session.js
r359 r364 5 5 'rft/store', 6 6 'rft/ui/_Page', 7 'rft/content'], 8 function(declare,lang,event,Deferred,store,_Page,content){ 7 'rft/content', 8 'rft/ui/AccountListView' 9 ], 10 function(declare,lang,event,Deferred,store,_Page,content,AccountListView){ 9 11 return declare('rft.pages.session',[_Page],{ 10 12 session: null, 13 listView: null, 11 14 onVisit: function() { 12 15 if ( this.pageArgs.uid ) { … … 16 19 this._refresh(); 17 20 })); 21 this._setupListView(); 18 22 } else { 19 throw "No valid uid or s urveypassed!";23 throw "No valid uid or session passed!"; 20 24 } 21 25 }, … … 26 30 this.titleNode.innerHTML = this.session.title || ''; 27 31 this.propertiesForm.set('value',this.session); 32 }, 33 onInvite: function() { 34 this._addAccount({ title : this.emailBox.get('value') }); 35 this.emailBox.set('value', ""); 28 36 }, 29 37 onSave: function(evt) { … … 41 49 content.goTo('sessions'); 42 50 return false; 51 }, 52 _addAccount: function(item) { 53 this.listView.insertItem(item); 54 }, 55 _setupListView: function() { 56 this.listView = new AccountListView( { 57 controller: this 58 }).placeAt(this.listViewNode); 59 this.listView.startup(); 43 60 } 61 44 62 }); 45 63 }); -
Dev/branches/rest-dojo-ui/client/rft/ui/Selector.js
r362 r364 12 12 './LineWithActionsWidget', 13 13 'dojo/text!./templates/Selector.html', 14 'dojo/dom-class' 14 'dojo/dom-class', 15 15 ],function( 16 16 declare, … … 102 102 } 103 103 }, 104 104 105 onToggle: function(evt) { 105 106 if (this._folded) {
Note: See TracChangeset
for help on using the changeset viewer.