Line | |
---|
1 | <tal:block define="mode options/mode; |
---|
2 | id here/getWidgetId; |
---|
3 | id_s string:${id}_s; |
---|
4 | id_g string:${id}_g; |
---|
5 | results options/datastructure/?id; |
---|
6 | subject options/datastructure/?id_s; |
---|
7 | grade options/datastructure/?id_g; |
---|
8 | "> |
---|
9 | <tal:block> |
---|
10 | <table> |
---|
11 | <tr tal:repeat="res results"> |
---|
12 | <td tal:content="res/subject" /> <td tal:content="res/grade" /> |
---|
13 | </tr> |
---|
14 | </table> |
---|
15 | </tal:block> |
---|
16 | <tal:block define="name here/getHtmlWidgetId;" |
---|
17 | condition="python: mode == 'edit'"> |
---|
18 | <table> |
---|
19 | <tr> |
---|
20 | <td> |
---|
21 | <input type="text" size="10" maxlength="10" |
---|
22 | tal:attributes="name string:${name}_s; |
---|
23 | id string:${name}_s; |
---|
24 | value subject" |
---|
25 | /> |
---|
26 | </td> |
---|
27 | <td> |
---|
28 | <input type="text" size="2" maxlength="2" |
---|
29 | tal:attributes="name string:${name}_g; |
---|
30 | id string:${name}_g; |
---|
31 | value grade" |
---|
32 | /> |
---|
33 | </td> |
---|
34 | <td> |
---|
35 | <input type="submit" class="standalone" name="cpsdocument_edit_button" |
---|
36 | value="Save" |
---|
37 | id="cpsdocument_edit_button" /> |
---|
38 | </td> |
---|
39 | </tr> |
---|
40 | </table> |
---|
41 | </tal:block> |
---|
42 | </tal:block> |
---|
Note: See
TracBrowser for help on using the repository browser.