source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_student/widget_waeup_result_render.pt @ 15131

Last change on this file since 15131 was 842, checked in by Henrik Bettermann, 18 years ago

layouts beautified
cpsdocument_edit_form.pt should not be used for clearance objects, has to be changed

  • Property svn:keywords set to Id
File size: 1.9 KB
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                   grade_voc context/portal_vocabularies/exam_grades;   
9                   subjects_voc context/portal_vocabularies/exam_subjects;   
10">
11<tal:block condition="python: mode == 'view'">
12    <div tal:repeat="res results">
13      <span tal:content="python:subjects_voc.get(res[0])" />: <span tal:content="python:grade_voc.get(res[1])" />
14    </div>
15</tal:block>
16<tal:block define="name here/getHtmlWidgetId;"
17           condition="python: mode == 'edit'">
18  <table border=0 cellpadding=0 cellspacing=0>
19    <tr><th>Subject</th><th>Grade</th>
20    <tr tal:repeat="res results">
21      <td tal:content="python:subjects_voc.get(res[0])" /><td tal:content="python:grade_voc.get(res[1])" />
22    </tr>
23    <tr>
24      <td><select size="1"
25                  tal:attributes="name string:${name}_s;
26                  id string:${name}_s;">
27              <option tal:repeat="sub subjects_voc/items"
28                      tal:attributes="value python:sub[0]"
29                      tal:content="python: sub[1]">
30              </option>
31            </select>
32      </td>
33      <td>
34          <select size="1"
35                  tal:attributes="name string:${name}_g;
36                  id string:${name}_g;">
37                  <option tal:repeat="sub grade_voc/items"
38                          tal:attributes="value python:sub[0]"
39                          tal:content="python: sub[1]">
40          </option>
41        </select>
42      </td>
43      <td>
44        <input type="submit" class="standalone" name="cpsdocument_edit_button"
45         value="Add/Modify"
46         id="cpsdocument_edit_button" />
47      </td>
48    </tr>
49  </table>
50</tal:block>
51</tal:block>
Note: See TracBrowser for help on using the repository browser.