Changeset 7466 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 13 Jan 2012, 08:15:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7462 r7466 168 168 grok.template('containerpage') 169 169 label = 'Student Section' 170 title = 'Students'171 170 pnav = 4 172 171 … … 198 197 grok.require('waeup.Anonymous') 199 198 grok.template('setpassword') 200 title = ''201 199 label = 'Set password for first-time login' 202 200 ac_prefix = 'PWD' … … 266 264 grok.template('containermanagepage') 267 265 pnav = 4 268 title = 'Manage student section' 269 270 @property 271 def label(self): 272 return self.title 266 label = 'Manage student section' 273 267 274 268 def update(self, *args, **kw): … … 326 320 form_fields = grok.AutoFields(IStudent).select( 327 321 'firstname', 'middlename', 'lastname') 328 title = 'Students'329 322 label = 'Add student' 330 323 pnav = 4 … … 348 341 form_fields = grok.AutoFields(IStudentBase).omit('password') 349 342 pnav = 4 350 title = 'Base Data'351 343 352 344 @property … … 374 366 grok.require('waeup.viewStudent') 375 367 pnav = 4 376 title = 'Contact'377 368 form_fields = grok.AutoFields(IContactForm).select('subject', 'body') 378 369 … … 423 414 grok.template('basemanagepage') 424 415 label = 'Manage base data' 425 title = 'Base Data'426 416 pnav = 4 427 417 … … 483 473 form_fields = grok.AutoFields(IStudentClearance).omit('clearance_locked') 484 474 form_fields['date_of_birth'].custom_widget = FriendlyDateDisplayWidget('le') 485 title = 'Clearance Data'486 475 pnav = 4 487 476 … … 569 558 form_fields = grok.AutoFields(IStudentClearance) 570 559 label = 'Manage clearance data' 571 title = 'Clearance Data'572 560 pnav = 4 573 561 form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year') … … 638 626 form_fields = grok.AutoFields(IStudentPersonal) 639 627 form_fields['perm_address'].custom_widget = BytesDisplayWidget 640 title = 'Personal Data'641 628 pnav = 4 642 629 … … 661 648 form_fields = grok.AutoFields(IStudentPersonal) 662 649 label = 'Manage personal data' 663 title = 'Personal Data'664 650 pnav = 4 665 651 … … 677 663 form_fields = grok.AutoFields(IStudentStudyCourse) 678 664 grok.template('studycoursepage') 679 title = 'Study Course'680 665 pnav = 4 681 666 … … 720 705 grok.template('studycoursemanagepage') 721 706 form_fields = grok.AutoFields(IStudentStudyCourse) 722 title = 'Study Course'723 707 label = 'Manage study course' 724 708 pnav = 4 … … 798 782 datatable.need() 799 783 return 800 801 @property802 def title(self):803 return 'Study Level %s' % self.context.level_title804 784 805 785 @property … … 917 897 918 898 @property 919 def title(self):920 return 'Study Level %s' % self.context.level_title921 922 @property923 899 def label(self): 924 900 return 'Manage study level %s' % self.context.level_title … … 1020 996 'grade', 'score', 'automatic') 1021 997 pnav = 4 1022 1023 @property1024 def title(self):1025 return 'Study Level %s' % self.context.level_title1026 998 1027 999 @action('Add course ticket') … … 1064 1036 1065 1037 @property 1066 def title(self):1067 return 'Course Ticket %s' % self.context.code1068 1069 @property1070 1038 def label(self): 1071 1039 return '%s: Course Ticket %s' % ( … … 1089 1057 grok.template('courseticketmanagepage') 1090 1058 pnav = 4 1091 1092 @property1093 def title(self):1094 return 'Course Ticket %s' % self.context.code1095 1059 1096 1060 @property … … 1112 1076 # form_fields = grok.AutoFields(IStudentPaymentsContainer) 1113 1077 # grok.template('paymentspage') 1114 # title = 'Payments'1115 1078 # pnav = 4 1116 1079 … … 1133 1096 form_fields = grok.AutoFields(IStudentPaymentsContainer) 1134 1097 grok.template('paymentsmanagepage') 1135 title = 'Payments'1136 1098 pnav = 4 1137 1099 … … 1200 1162 'p_category') 1201 1163 label = 'Add online payment' 1202 title = 'Payments'1203 1164 pnav = 4 1204 1165 … … 1259 1220 form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 1260 1221 pnav = 4 1261 1262 @property1263 def title(self):1264 return 'Online Payment Ticket %s' % self.context.p_id1265 1222 1266 1223 @property … … 1384 1341 # form_fields = grok.AutoFields(IStudentAccommodation) 1385 1342 # #grok.template('accommodationpage') 1386 # title = 'Accommodation'1387 1343 # pnav = 4 1388 1344 … … 1400 1356 form_fields = grok.AutoFields(IStudentAccommodation) 1401 1357 grok.template('accommodationmanagepage') 1402 title = 'Accommodation'1403 1358 pnav = 4 1404 1359 officers_only_actions = ['Remove selected'] … … 1465 1420 ac_prefix = 'HOS' 1466 1421 label = 'Add bed ticket' 1467 title = 'Add bed ticket'1468 1422 pnav = 4 1469 1423 buttonname = 'Create bed ticket' … … 1565 1519 def label(self): 1566 1520 return 'Bed Ticket for Session %s' % self.context.getSessionString() 1567 1568 @property1569 def title(self):1570 return 'Bed Ticket %s' % self.context.getSessionString()1571 1521 1572 1522 class BedTicketSlipActionButton(ManageActionButton): … … 1685 1635 grok.require('waeup.viewStudent') 1686 1636 grok.template('studenthistory') 1687 title = 'History'1688 1637 pnav = 4 1689 1638 … … 1735 1684 'email', 'phone') 1736 1685 label = 'Edit base data' 1737 title = 'Base Data'1738 1686 pnav = 4 1739 1687 … … 1751 1699 grok.template('change_password') 1752 1700 label = 'Change password' 1753 title = 'Base Data'1754 1701 pnav = 4 1755 1702 … … 1778 1725 grok.template('filesuploadpage') 1779 1726 label = 'Upload portrait' 1780 title = 'Base Data'1781 1727 pnav = 4 1782 1728 … … 1808 1754 grok.require('waeup.handleStudent') 1809 1755 grok.template('enterpin') 1810 title = 'Start clearance'1811 1756 label = 'Start clearance' 1812 1757 ac_prefix = 'CLR' … … 1892 1837 IStudentClearanceEdit).omit('clearance_locked') 1893 1838 label = 'Edit clearance data' 1894 title = 'Clearance Data'1895 1839 form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year') 1896 1840 … … 1930 1874 grok.require('waeup.handleStudent') 1931 1875 grok.template('enterpin') 1932 title = 'Request clearance'1933 1876 label = 'Request clearance' 1934 1877 notice = 'Enter the CLR access code used for starting clearance.' … … 1977 1920 grok.require('waeup.handleStudent') 1978 1921 grok.template('enterpin') 1979 title = 'Start course registration'1980 1922 label = 'Start course registration' 1981 1923 ac_prefix = 'SFE' … … 2049 1991 grok.template('studyleveladdpage') 2050 1992 form_fields = grok.AutoFields(IStudentStudyCourse) 2051 title = 'Study Course'2052 1993 pnav = 4 2053 1994 … … 2114 2055 warning.need() 2115 2056 return 2116 2117 @property2118 def title(self):2119 return 'Study Level %s' % self.context.level_title2120 2057 2121 2058 @property … … 2203 2140 grok.require('waeup.Anonymous') 2204 2141 grok.template('changepw') 2205 title = 'Change Password Request'2206 2142 label = 'Change my password' 2207 2143 form_fields = grok.AutoFields(IStudentChangePassword)
Note: See TracChangeset for help on using the changeset viewer.