Changeset 1186 for WAeUP_SRP/trunk
- Timestamp:
- 3 Jan 2007, 18:08:07 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getPersonalInfo.py
r1167 r1186 38 38 students_object = context.portal_url.getPortalObject().campus.students 39 39 student = getattr(students_object, student_id) 40 info['id'] = student_id 41 info['student'] = student 42 info['review_state'] = wf.getInfoFor(student,'review_state',None) 43 info['per'] = student.personal 40 #info['id'] = student_id 41 #info['student'] = student 42 res = context.portal_catalog(portal_type='Student',id = student_id) 43 if res: 44 info['review_state'] = res[0].review_state 45 #info['review_state'] = wf.getInfoFor(student,'review_state',None) 46 #info['per'] = student.personal 44 47 info['per_doc'] = student.personal.getContent() 45 48 return info -
WAeUP_SRP/trunk/skins/waeup_student/layout_personal_view.pt
r1167 r1186 3 3 <metal:block define-macro="default_view" 4 4 tal:define="layout options/layout; 5 dm options/datastructure/getDataModel; 6 widgets python:context.getRenderedWidgets(layout); 7 fields_not_displayed python:('',)" > 5 dm options/datastructure/getDataModel;"> 8 6 9 7 <table cellpadding="2" cellspacing="2" summary="layout"> … … 12 10 </td> 13 11 <td> 14 <span tal:replace=" python:here.aq_parent.aq_parent.id" />12 <span tal:replace="context/getStudentId" /> 15 13 </td> 16 14 </tr> 17 18 15 <span tal:repeat="row layout/rows"> 19 16 <span tal:repeat="cell row"> 20 17 <span tal:condition="python:cell['widget_rendered'] 21 and not cell['widget_rendered'] in ('None','-',)22 18 or cell['widget_id'] == 'birth_certificate'"> 23 <span tal:define="widget cell/widget" 24 tal:condition="python:cell['widget_id'] not in fields_not_displayed"> 19 <span tal:define="widget cell/widget"> 25 20 <div tal:omit-tag="" 26 21 tal:attributes="class cell/widget_css_class|nothing;"> 27 28 22 <tr> 29 23 <tal:block condition="widget/label"> -
WAeUP_SRP/trunk/skins/waeup_student/personal_view.pt
r1171 r1186 11 11 <span tal:condition="info" 12 12 tal:define="review_state info/review_state"> 13 14 15 13 <h3>My Personal Record</h3> 16 14 <br /> 17 15 <span tal:omit-tag="" 18 tal:content="structure python: info['per_doc'].render( proxy=info['per_doc'],16 tal:content="structure python: info['per_doc'].render( 19 17 layout_mode='view', 20 18 layout_id='student_personal_fe')"
Note: See TracChangeset for help on using the changeset viewer.