| 1 | <div class="view mblView"> |
| 2 | <script type="dojo/require">at: "dojox/mvc/at"</script> |
| 3 | <h1 data-dojo-type="dojox/mobile/Heading" data-dojo-props='back:"Home"'>repeat2</h1> |
| 4 | <form name="repeatTestForm" id="repeatTestForm2"> |
| 5 | <div class="field-title">repeat2 - Using an mvcModel (dojox/mvc/EditStoreRefListController) with an ItemFileWriteStore which gets wrapped in DataStore, with a query.</div> |
| 6 | <div id="repeatWidget2" class="fieldset" data-dojo-type="dojox/mvc/Repeat" |
| 7 | data-dojo-props="exprchar: '#', children: this.loadedModels.repeatmodels2.model" > |
| 8 | <div class="row"> |
| 9 | <input data-dojo-type="dojox/mobile/TextBox" |
| 10 | id="nameInput2#{this.index}" data-dojo-props="value: at('rel:#{this.index}','First')" placeHolder="First Name"> |
| 11 | <button type="button" id="detail2#{this.index}" data-dojo-type="dojox/mobile/Button" class="mblBlueButton"> |
| 12 | Details |
| 13 | </button> |
| 14 | <button type="button" id="insert2#{this.index}" data-dojo-type="dojox/mobile/Button" class="mblBlueButton"> |
| 15 | + |
| 16 | </button> |
| 17 | <button type="button" id="delete2#{this.index}" data-dojo-type="dojox/mobile/Button" class="mblBlueButton"> |
| 18 | - |
| 19 | </button> |
| 20 | </div> |
| 21 | </div> |
| 22 | <div class="spacer"></div> |
| 23 | <div data-dojo-type="dojox/mvc/Group" |
| 24 | data-dojo-props="target: at(this.loadedModels.repeatmodels2, 'cursor')"> |
| 25 | <div class="field-title"> |
| 26 | <div style="display: inline-block;" id="detailsBanner2">Details for selected index:</div> |
| 27 | <span class="cell" id="indexOutput2" |
| 28 | data-dojo-type="dojox/mvc/Output" |
| 29 | data-dojo-props="value: at(this.loadedModels.repeatmodels2, 'cursorIndex')"></span> |
| 30 | </div> |
| 31 | <table id="table2" cellspacing="10" style="width: 100%"> |
| 32 | <tr> |
| 33 | <td style="width: 100px;" class="layout">First Name</td> |
| 34 | <td class="layout"> |
| 35 | <input id="firstInput2" data-dojo-type="dojox/mobile/TextBox" |
| 36 | data-dojo-props="value: at('rel:', 'First'), placeholder:'First Name'"> |
| 37 | </td> |
| 38 | </tr> |
| 39 | <tr> |
| 40 | <td style="width: 100px;" class="layout">Last Name</td> |
| 41 | <td class="layout"> |
| 42 | <input id="lastInput2" data-dojo-type="dojox/mobile/TextBox" |
| 43 | |
| 44 | data-dojo-props="placeholder:'Last Name', value: at('rel:', 'Last')"> |
| 45 | </td> |
| 46 | </tr> |
| 47 | <tr> |
| 48 | <td style="width: 100px;" class="layout">Email</td> |
| 49 | <td class="layout"> |
| 50 | <input id="emailInput22" data-dojo-type="dojox/mobile/TextBox" |
| 51 | data-dojo-props="value: at('rel:', 'Email'), placeholder:'Email'"> |
| 52 | </td> |
| 53 | </tr> |
| 54 | <tr> |
| 55 | <td style="width: 100px;" class="layout">Telephone</td> |
| 56 | <td class="layout"> |
| 57 | <input id="telInput2" data-dojo-type="dojox/mobile/TextBox" |
| 58 | data-dojo-props="value: at('rel:', 'Tel'), placeholder:'Telephone'"> |
| 59 | </td> |
| 60 | </tr> |
| 61 | </table> |
| 62 | </div> |
| 63 | </form> |
| 64 | </div> |