Ignore:
Timestamp:
09/05/12 14:41:13 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Added build infrastructure and reorganised code to match it.

Page navigation is now done by the rft/app/Controller class. pages
inherit generally from rft/app/Page, which is a BorderContainer?. The
Page uses normal widget mechanism like templateString, all data-rft-*
are obsolete, use normal data-dojo-* options again in templates.
This is done so the pages of the app can be included in the build.
URLs are linked to pages through registration, which is done in
run.js. The routes are defined in the routes.js file. Page class names
and URLs are now independent.

Reduced includes in index.html to one CSS file and two JS files. Dojo
stylesheets are now included thorugh externals.css.

Dojo 1.8 doesn't require the dotted names in declares anymore. All these
are now removed (redundant with module path and JS filename anyway)
and in templates a module id is used, so iso 'dijit.form.Form' use
'dijit/form/Form' now. This is more consistent with requires in the JS
code and they are picked up by the build system.

Removed any old-style dojo.<function> code and use loaded modules
everywhere.

Lots of whitespace unification.

Location:
Dev/branches/rest-dojo-ui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui

    • Property svn:ignore
      •  

        old new  
        11nbproject
        22.project
         3release
  • Dev/branches/rest-dojo-ui/client

    • Property svn:externals
      •  

        old new  
        1 dojotoolkit http://svn.dojotoolkit.org/src/tags/release-1.8.0
         1dojo http://svn.dojotoolkit.org/src/tags/release-1.8.0/dojo
         2dijit http://svn.dojotoolkit.org/src/tags/release-1.8.0/dijit
         3dojox http://svn.dojotoolkit.org/src/tags/release-1.8.0/dojox
         4util http://svn.dojotoolkit.org/src/tags/release-1.8.0/util
  • Dev/branches/rest-dojo-ui/client/rft/pages/session.html

    r384 r407  
    1 <div data-dojo-type="rft.pages.session">
    2     <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'center'" style="height: 500px;">
    3         <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'">
    4             <h2>
    5                 <span class="rftIcon rftIconSurvey"></span>
    6                 <span data-rft-attach-point="titleNode" class="headerText">Untitled</span><span class="headerText"> [editing]</span>
    7             </h2>
    8         </div>
    9         <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'center'">
    10             <div data-dojo-type="dijit.layout.TabContainer" class="green" data-dojo-props="tabPosition:'left-h',region:'center'">
    11                 <div data-dojo-type="dijit.layout.ContentPane" title="Properties">
    12                     <div data-dojo-type="dijit.form.Form" data-rft-attach-point="propertiesForm" data-rft-attach-event="onSubmit:onSave">
     1<div>
     2    <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'">
     3        <h2>
     4            <span class="rftIcon rftIconSurvey"></span>
     5            <span data-dojo-attach-point="titleNode" class="headerText">Untitled</span><span class="headerText"> [editing]</span>
     6        </h2>
     7    </div>
     8    <div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="region:'center'">
     9        <div data-dojo-type="dijit/layout/TabContainer" class="green" data-dojo-props="tabPosition:'left-h',region:'center'">
     10            <div data-dojo-type="dijit/layout/ContentPane" title="Properties">
     11                <div data-dojo-type="dijit/form/Form" data-dojo-attach-point="propertiesForm" data-dojo-attach-event="onSubmit:onSave">
    1312
    14                         <h3>Basic</h3>
    15                         <fieldset class="align">
    16                             <label for="title">Title</label>
    17                             <input type="text" name="title" data-dojo-type="dijit.form.TextBox" data-dojo-props="placeHolder: 'Enter title here'" />
    18                             <br/>
    19                             <label for="description">Description</label>
    20                             <textarea name="description" rows="3" cols="54" data-dojo-type="dijit.form.SimpleTextarea" data-dojo-props="selectOnClick: true, placeHolder: 'Description shown in tooltips'"></textarea>
    21                             <br/>
    22                             <label for="plannedDate">Planned date</label>
    23                             <input type="text" name="plannedDate" data-dojo-type="dijit.form.DateTextBox" required="required" />
    24                         </fieldset>
     13                    <h3>Basic</h3>
     14                    <fieldset class="align">
     15                        <label for="title">Title</label>
     16                        <input type="text" name="title" data-dojo-type="dijit/form/TextBox" data-dojo-props="placeHolder: 'Enter title here'" />
     17                        <br/>
     18                        <label for="description">Description</label>
     19                        <textarea name="description" rows="3" cols="54" data-dojo-type="dijit/form/SimpleTextarea" data-dojo-props="selectOnClick: true, placeHolder: 'Description shown in tooltips'"></textarea>
     20                        <br/>
     21                        <label for="plannedDate">Planned date</label>
     22                        <input type="text" name="plannedDate" data-dojo-type="dijit/form/DateTextBox" required="required" />
     23                    </fieldset>
    2524
    26                         <h3>Accounts</h3>
    27                         <fieldset class="align">
    28                             <label for="accountSelector">Add new</label>
    29                             <select data-rft-attach-point="accountSelector"></select>
    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                             <br/><br/>
    32                            
    33                             <div data-rft-attach-point="accountListNode" class="rftAccountListView">
    34                             </div>
    35                         </fieldset>
     25                    <h3>Accounts</h3>
     26                    <fieldset class="align">
     27                        <label for="accountSelector">Add new</label>
     28                        <select data-dojo-attach-point="accountSelector"></select>
     29                        <button data-dojo-attach-point="btnInvite" data-dojo-type="dijit/form/Button" data-dojo-attach-event="onClick:onInvite" data-dojo-props="baseClass: 'rftBlockButton', class: 'green', iconClass: 'rftIcon rftIconPlus'">Invite</button>
     30                        <br/><br/>
     31                       
     32                        <div data-dojo-attach-point="accountListNode" class="rftAccountListView">
     33                        </div>
     34                    </fieldset>
    3635
    37                         <button data-dojo-type="dijit.form.Button" data-rft-attach-event="onClick:onDiscard" data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconCancel'">Discard changes</button>
    38                         <button data-dojo-type="dijit.form.Button" data-rft-attach-event="onClick:onSave" data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconAccept'">Save changes</button>
    39 
    40                     </div>
     36                    <button data-dojo-type="dijit/form/Button" data-dojo-attach-event="onClick:onDiscard" data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconCancel'">Discard changes</button>
     37                    <button data-dojo-type="dijit/form/Button" data-dojo-attach-event="onClick:onSave" data-dojo-props="baseClass: 'rftLargeButton', iconClass: 'rftIcon rftIconAccept'">Save changes</button>
    4138
    4239                </div>
    43                 <div data-dojo-type="dijit.layout.ContentPane" title="Design">
    44                     <div class="rftSessionObject green">
    45                         <div class="rftIcon rftIconSurvey"></div>
    46                         <label>Survey name</label>
    47                     </div>
    48                     <div class="rftSessionObject green">
    49                         <div class="rftIcon rftIconSurvey"></div>
    50                         <label>Survey name, this one is really long.</label>
    51                     </div>
    5240
     41            </div>
     42            <div data-dojo-type="dijit/layout/ContentPane" title="Design">
     43                <div class="rftSessionObject green">
     44                    <div class="rftIcon rftIconSurvey"></div>
     45                    <label>Survey name</label>
    5346                </div>
     47                <div class="rftSessionObject green">
     48                    <div class="rftIcon rftIconSurvey"></div>
     49                    <label>Survey name, this one is really long.</label>
     50                </div>
     51
    5452            </div>
    5553        </div>
Note: See TracChangeset for help on using the changeset viewer.