Ignore:
Timestamp:
11 Nov 2006, 13:32:24 (18 years ago)
Author:
joachim
Message:

add vocabularies for subjects and grades according to Kehindes Data
use them in clearance form.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/widget_waeup_result_render.pt

    r836 r841  
    66                   subject options/datastructure/?id_s;
    77                   grade options/datastructure/?id_g;
     8                   grade_voc context/portal_vocabularies/exam_grades;   
     9                   subjects_voc context/portal_vocabularies/exam_subjects;   
    810">
    911<tal:block condition="python: mode == 'view'">
    1012    <div tal:repeat="res results">
    11       <span tal:repeat="col res"><span tal:content="col" />&nbsp;&nbsp;</span>
     13      <span tal:content="python:subjects_voc.get(res[0])" />&nbsp;&nbsp;<span tal:content="python:grade_voc.get(res[1])" />
    1214    </div>
    1315</tal:block>
     
    1719    <tr><th>Subject</th><th>Grade</th>
    1820    <tr tal:repeat="res results">
    19       <td tal:repeat="col res" tal:content="col" />
     21      <td tal:content="python:subjects_voc.get(res[0])" /><td tal:content="python:grade_voc.get(res[1])" />
    2022    </tr>
    2123    <tr>
     
    2325                  tal:attributes="name string:${name}_s;
    2426                  id string:${name}_s;">
    25               <option tal:repeat="sub python:(('','----'),('Mathematics','Mathematics'),('English','English'))"
     27              <option tal:repeat="sub subjects_voc/items"
    2628                      tal:attributes="value python:sub[0]"
    2729                      tal:content="python: sub[1]">
     
    3335                  tal:attributes="name string:${name}_g;
    3436                  id string:${name}_g;">
    35                   <option tal:repeat="sub python:(('','-'),('A','A'),('B','B'),('C','C'),('D','D'))"
     37                  <option tal:repeat="sub grade_voc/items"
    3638                          tal:attributes="value python:sub[0]"
    3739                          tal:content="python: sub[1]">
Note: See TracChangeset for help on using the changeset viewer.