Changeset 3814


Ignore:
Timestamp:
12 Dec 2008, 15:23:38 (16 years ago)
Author:
Henrik Bettermann
Message:

resolve ticket Uniben #592

Location:
WAeUP_SRP/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/ois/layouts/student_clearance.xml

    r3811 r3814  
    840840  <property name="render_format">radio</property>
    841841 </widget>
     842 
     843
     844 <widget name="clearance_officer" meta_type="String Widget">
     845  <property name="title">Clearance Officer</property>
     846  <property name="fields">
     847   <element value="clearance_officer"/>
     848  </property>
     849  <property name="label">Clearance Officer</property>
     850  <property name="label_edit">Clearance Officer</property>
     851  <property name="readonly_layout_modes">
     852  </property>
     853  <property name="hidden_layout_modes">
     854   <element value="create"/>
     855  </property>
     856  <property name="hidden_readonly_layout_modes"/>
     857 </widget> 
     858 
     859 
    842860 <table>
    843861  <row>
  • WAeUP_SRP/trunk/profiles/uniben/layouts/student_clearance.xml

    r3804 r3814  
    971971   <cell name="cleared_date"/>
    972972  </row> 
    973   <row>
    974    <cell name="clearance_officer"/>
    975   </row>
    976973 </table>
    977974</object>
  • WAeUP_SRP/trunk/profiles/uniben/layouts/student_clearance_fe.xml

    r3804 r3814  
    958958   <cell name="cleared_date"/>
    959959  </row> 
    960   <row>
    961    <cell name="clearance_officer"/>
    962   </row> 
    963960 </table>
    964961</object>
  • WAeUP_SRP/trunk/skins/waeup_layout/layout_clearance_view.pt

    r2801 r3814  
    4444      </span>
    4545    </span>
     46
     47    <span  tal:define="mtool here/portal_membership;
     48                       co_id context/clearance_officer|nothing;"
     49           tal:condition="co_id">
     50        <tr tal:define="co_member python:mtool.getMemberById(co_id);">
     51          <td>Cleared By:</td>
     52          <td><span tal:content="python:co_member.getProperty('fullname',None)" /></td>
     53        </tr>
     54    </span>
     55 
    4656  </table>
    4757</metal:block>
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r3746 r3814  
    8080    #from Products.zdb import set_trace
    8181    #set_trace()
    82     clear_doc.edit(mapping = {'cleared_date': current,})
     82    clear_doc.edit(mapping = {'clearance_officer': member_id,
     83                              'cleared_date': current,})
    8384    wftool.doActionFor(info['student'],'clear_and_validate')
    84 
    85 
    8685    if clear_doc.firstname and clear_doc.lastname:
    8786        if info['per_review_state'] != 'opened':
Note: See TracChangeset for help on using the changeset viewer.