Changeset 6006 for main/waeup.sirp/trunk
- Timestamp:
- 1 May 2011, 20:56:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r6005 r6006 1208 1208 grok.name('addcourse') 1209 1209 grok.require('waeup.manageUniversity') 1210 title = u'Add course'1211 1210 label = u'Add course' 1212 1211 form_fields = grok.AutoFields(ICourseAdd) 1213 1212 pnav = 1 1213 1214 @property 1215 def title(self): 1216 return self.context.longtitle() 1214 1217 1215 1218 @grok.action('Add course') … … 1240 1243 grok.name('addcertificate') 1241 1244 grok.require('waeup.manageUniversity') 1242 title = u'Add certificate'1243 1245 label = u'Add certificate' 1244 1246 form_fields = grok.AutoFields(ICertificateAdd) 1245 1247 pnav = 1 1246 1248 1249 @property 1250 def title(self): 1251 return self.context.longtitle() 1247 1252 1248 1253 @grok.action('Add certificate') … … 1298 1303 grok.name('manage') 1299 1304 grok.require('waeup.manageUniversity') 1300 title= u'Edit course'1305 label = u'Edit course' 1301 1306 pnav = 1 1302 1307 1303 1308 form_fields = grok.AutoFields(ICourse) 1309 1310 @property 1311 def title(self): 1312 return 'Course: %s (%s)' % (self.context.title, self.context.code) 1304 1313 1305 1314 @grok.action('Save') … … 1394 1403 grok.name('manage') 1395 1404 grok.require('waeup.manageUniversity') 1396 title = u'Edit certificate'1397 pnav = 11405 pnav = 1 1406 label = 'Edit certificate' 1398 1407 1399 1408 form_fields = grok.AutoFields(ICertificate) 1409 1410 @property 1411 def title(self): 1412 return "Certificate: %s (%s)" % (self.context.title, self.context.code) 1400 1413 1401 1414 #@property … … 1444 1457 form_fields = grok.AutoFields(ICertificateCourseAdd) 1445 1458 pnav = 1 1446 title = 'Add course referrer' 1459 label = 'Add course referrer' 1460 1461 @property 1462 def title(self): 1463 return "Certificate: %s (%s)" % (self.context.title, self.context.code) 1447 1464 1448 1465 @grok.action('Add course referrer') … … 1489 1506 grok.require('waeup.manageUniversity') 1490 1507 form_fields = grok.AutoFields(ICertificateCourse) 1508 label = 'Edit course referrer' 1491 1509 pnav = 1 1492 1510 1493 1511 @property 1494 1512 def title(self): 1495 return ' Edit course referrer'1513 return 'Course Referrer: %s' % (self.context.__name__) 1496 1514 1497 1515 @grok.action('Save and return')
Note: See TracChangeset for help on using the changeset viewer.