1 | <div class="view mblView"> |
---|
2 | <h1 data-dojo-type="dojox/mobile/Heading" data-app-constraint="top" data-dojo-props='back:"Home"'>repeat</h1> |
---|
3 | |
---|
4 | <div data-dojo-type="dojox/app/widgets/Container" data-dojo-props="scrollable:true" data-app-constraint="center"> |
---|
5 | <script type="dojo/require">at: "dojox/mvc/at"</script> |
---|
6 | <form name="repeatTestForm" id="repeatTestForm"> |
---|
7 | <div class="field-title">repeat - Using an mvcModel (dojox/mvc/EditStoreRefListController) with a dojo.store.JsonRest.</div> |
---|
8 | <div id="repeatWidget" class="fieldset" data-dojo-type="dojox/mvc/Repeat" |
---|
9 | data-dojo-props="exprchar: '#', children: this.loadedModels.jsonRestModel.model" > |
---|
10 | <div class="row"> |
---|
11 | <input data-dojo-type="dojox/mobile/TextBox" |
---|
12 | id="nameInput#{this.index}" data-dojo-props="value: at('rel:#{this.index}','First')" placeHolder="First Name"> |
---|
13 | <button type="button" id="detail#{this.index}" data-dojo-type="dojox/mobile/Button" class="mblBlueButton"> |
---|
14 | Details |
---|
15 | </button> |
---|
16 | <button type="button" id="insert#{this.index}" data-dojo-type="dojox/mobile/Button" class="mblBlueButton"> |
---|
17 | + |
---|
18 | </button> |
---|
19 | <button type="button" id="delete#{this.index}" data-dojo-type="dojox/mobile/Button" class="mblBlueButton"> |
---|
20 | - |
---|
21 | </button> |
---|
22 | </div> |
---|
23 | </div> |
---|
24 | <div class="spacer"></div> |
---|
25 | <div data-dojo-type="dojox/mvc/Group" |
---|
26 | data-dojo-props="target: at(this.loadedModels.jsonRestModel, 'cursor')"> |
---|
27 | <div class="field-title"> |
---|
28 | <div style="display: inline-block;" id="detailsBanner">Details for selected index:</div> |
---|
29 | <span class="cell" id="indexOutput" |
---|
30 | data-dojo-type="dojox/mvc/Output" |
---|
31 | data-dojo-props="value: at(this.loadedModels.jsonRestModel, 'cursorIndex')"></span> |
---|
32 | </div> |
---|
33 | <table id="table" cellspacing="10" style="width: 100%"> |
---|
34 | <tr> |
---|
35 | <td style="width: 100px;" class="layout">First Name</td> |
---|
36 | <td class="layout"> |
---|
37 | <input id="firstInput" data-dojo-type="dojox/mobile/TextBox" |
---|
38 | data-dojo-props="value: at('rel:', 'First'), placeholder:'First Name'"> |
---|
39 | </td> |
---|
40 | </tr> |
---|
41 | <tr> |
---|
42 | <td style="width: 100px;" class="layout">Last Name</td> |
---|
43 | <td class="layout"> |
---|
44 | <input id="lastInput" data-dojo-type="dojox/mobile/TextBox" |
---|
45 | |
---|
46 | data-dojo-props="placeholder:'Last Name', value: at('rel:', 'Last')"> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | <tr> |
---|
50 | <td style="width: 100px;" class="layout">Email</td> |
---|
51 | <td class="layout"> |
---|
52 | <input id="emailInput2" data-dojo-type="dojox/mobile/TextBox" |
---|
53 | data-dojo-props="value: at('rel:', 'Email'), placeholder:'Email'"> |
---|
54 | </td> |
---|
55 | </tr> |
---|
56 | <tr> |
---|
57 | <td style="width: 100px;" class="layout">Telephone</td> |
---|
58 | <td class="layout"> |
---|
59 | <input id="telInput" data-dojo-type="dojox/mobile/TextBox" |
---|
60 | data-dojo-props="value: at('rel:', 'Tel'), placeholder:'Telephone'"> |
---|
61 | </td> |
---|
62 | </tr> |
---|
63 | </table> |
---|
64 | </div> |
---|
65 | </form> |
---|
66 | </div> |
---|
67 | </div> |
---|