Changeset 7171 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 22 Nov 2011, 17:31:23 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7160 r7171 605 605 @property 606 606 def current_mode(self): 607 return study_modes.getTermByToken( 608 self.context.certificate.study_mode).title 607 if self.context.certificate: 608 current_mode = study_modes.getTermByToken( 609 self.context.certificate.study_mode).title 610 return current_mode 611 return 612 613 @property 614 def department(self): 615 if self.context.certificate: 616 return self.context.certificate.__parent__.__parent__ 617 return 618 619 @property 620 def faculty(self): 621 if self.context.certificate: 622 return self.context.certificate.__parent__.__parent__.__parent__ 623 return 609 624 610 625 class StudyCourseManageActionButton(ManageActionButton): -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studycoursepage.pt
r7161 r7171 39 39 </td> 40 40 <td class="field"> 41 < divclass="widget"42 tal:content="view/ context/certificate/__parent__/__parent__/longtitle">43 <input type="text" />44 </ div>41 <a tal:attributes="href python: view.url(view.department)" class="widget" 42 tal:content="view/department/longtitle"> 43 DEPARTMENT 44 </a> 45 45 </td> 46 46 </tr> … … 52 52 </td> 53 53 <td class="field"> 54 < divclass="widget"55 tal:content="view/ context/certificate/__parent__/__parent__/__parent__/longtitle">56 <input type="text" />57 </ div>54 <a tal:attributes="href python: view.url(view.faculty)" class="widget" 55 tal:content="view/faculty/longtitle"> 56 FACULTY 57 </a> 58 58 </td> 59 59 </tr>
Note: See TracChangeset for help on using the changeset viewer.