| 1 | <div id="settings" dojoType="dojox.mobile.ScrollableView" style="width: 100%;"> |
| 2 | <h1 id="home" dojoType="dojox.mobile.Heading" back="Home" moveTo="foo">Data Binding Example</h1> |
| 3 | <form name="testForm" id="testForm"> |
| 4 | <div class="field-title">Ship to - Bill to Address</div> |
| 5 | <div class="fieldset" dojoType="dojox.mvc.Group" ref="model"> |
| 6 | <div class="field-row"> |
| 7 | <span>Order #</span> |
| 8 | <input type=text id="lastnameInput" dojoType="dojox.mobile.TextBox" |
| 9 | placeholder="Order #" ref="'rel:Serial'"></input> |
| 10 | </div> |
| 11 | <div class="field-row"> |
| 12 | <span>Last</span> |
| 13 | <input type=text id="serialInput" dojoType="dojox.mobile.TextBox" |
| 14 | placeholder="Last" ref="'rel:Last'"></input> |
| 15 | </div> |
| 16 | <div class="field-row"> |
| 17 | <span>Email</span> |
| 18 | <input type=text id="emailInput1" dojoType="dojox.mobile.TextBox" |
| 19 | placeholder="Last" ref="'rel:Email'"></input> |
| 20 | </div> |
| 21 | </div> |
| 22 | <div class="spacer"></div> |
| 23 | <button id="shipto" type="button" dojoType="dojox.mobile.Button" class="mblBlueButton" onclick="setRef('addrGroup', model.ShipTo)">Ship To</button> |
| 24 | <button id="billto" type="button" dojoType="dojox.mobile.Button" class="mblBlueButton" onclick="setRef('addrGroup', model.BillTo)">Bill To</button> |
| 25 | <br/> |
| 26 | <div class="fieldset" id="addrGroup" dojoType="dojox.mvc.Group" ref="model.ShipTo"> |
| 27 | <div class="field-row"> |
| 28 | <span>Street</span> |
| 29 | <input type=text id="streetInput" dojoType="dojox.mobile.TextBox" |
| 30 | placeholder="Street" ref="'rel:Street'"></input> |
| 31 | </div> |
| 32 | <div class="field-row"> |
| 33 | <span>City</span> |
| 34 | <input type=text id="cityInput" dojoType="dojox.mobile.TextBox" |
| 35 | placeholder="City" ref="'rel:City'"></input> |
| 36 | </div> |
| 37 | <div class="field-row"> |
| 38 | <span>State</span> |
| 39 | <input type=text id="stateInput" dojoType="dojox.mobile.TextBox" |
| 40 | placeholder="State" ref="'rel:State'"></input> |
| 41 | </div> |
| 42 | <div class="field-row"> |
| 43 | <span>ZIP Code</span> |
| 44 | <input type=text id="zipInput" dojoType="dojox.mobile.TextBox" |
| 45 | placeholder="ZIP Code" ref="'rel:Zip'"></input> |
| 46 | </div> |
| 47 | </div> |
| 48 | <div class="spacer"></div> |
| 49 | <button id="reset1" type="button" dojoType="dojox.mobile.Button" class="mblBlueButton" onclick="model.reset()">Reset</button> |
| 50 | </form> |
| 51 | </div> |