Changeset 6912 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 19 Oct 2011, 12:58:49 (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
r6906 r6912 33 33 FriendlyDateWidget, FriendlyDateDisplayWidget, 34 34 FriendlyDatetimeDisplayWidget) 35 from waeup.sirp.university.vocabularies import study_modes 35 36 from waeup.sirp.students.interfaces import ( 36 37 IStudentsContainer, IStudent, IStudentClearance, IStudentPasswordSetting, … … 500 501 def label(self): 501 502 return '%s: Study Course' % self.context.__parent__.fullname 503 504 @property 505 def current_mode(self): 506 return study_modes.getTermByToken( 507 self.context.certificate.study_mode).title 502 508 503 509 class StudyCourseManageActionButton(ManageActionButton): -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studycoursepage.pt
r6806 r6912 20 20 </tr> 21 21 </tal:block> 22 <tr> 23 <td> 24 <label> 25 Study Mode: 26 </label> 27 </td> 28 <td class="field" tal:on-error="default"> 29 <div class="widget" tal:content="view/current_mode"> 30 <input type="text" /> 31 </div> 32 </td> 33 </tr> 22 34 </tbody> 23 35 </table>
Note: See TracChangeset for help on using the changeset viewer.