Ignore:
Timestamp:
1 May 2011, 20:56:26 (14 years ago)
Author:
Henrik Bettermann
Message:

Standardize labels and titles in university pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r6005 r6006  
    12081208    grok.name('addcourse')
    12091209    grok.require('waeup.manageUniversity')
    1210     title = u'Add course'
    12111210    label = u'Add course'
    12121211    form_fields = grok.AutoFields(ICourseAdd)
    12131212    pnav = 1
     1213   
     1214    @property
     1215    def title(self):
     1216        return self.context.longtitle()       
    12141217   
    12151218    @grok.action('Add course')
     
    12401243    grok.name('addcertificate')
    12411244    grok.require('waeup.manageUniversity')
    1242     title = u'Add certificate'
    12431245    label = u'Add certificate'
    12441246    form_fields = grok.AutoFields(ICertificateAdd)
    12451247    pnav = 1
    12461248   
     1249    @property
     1250    def title(self):
     1251        return self.context.longtitle()       
    12471252       
    12481253    @grok.action('Add certificate')
     
    12981303    grok.name('manage')
    12991304    grok.require('waeup.manageUniversity')
    1300     title = u'Edit course'
     1305    label = u'Edit course'
    13011306    pnav = 1
    13021307
    13031308    form_fields = grok.AutoFields(ICourse)
     1309   
     1310    @property
     1311    def title(self):
     1312        return 'Course: %s (%s)' % (self.context.title, self.context.code)
    13041313
    13051314    @grok.action('Save')
     
    13941403    grok.name('manage')
    13951404    grok.require('waeup.manageUniversity')
    1396     title = u'Edit certificate'
    1397     pnav = 1
     1405    pnav = 1
     1406    label = 'Edit certificate'
    13981407   
    13991408    form_fields = grok.AutoFields(ICertificate)
     1409   
     1410    @property
     1411    def title(self):
     1412        return "Certificate: %s (%s)" % (self.context.title, self.context.code)   
    14001413
    14011414    #@property
     
    14441457    form_fields = grok.AutoFields(ICertificateCourseAdd)
    14451458    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)
    14471464
    14481465    @grok.action('Add course referrer')
     
    14891506    grok.require('waeup.manageUniversity')
    14901507    form_fields = grok.AutoFields(ICertificateCourse)
     1508    label = 'Edit course referrer'
    14911509    pnav = 1
    14921510   
    14931511    @property
    14941512    def title(self):
    1495         return 'Edit course referrer'
     1513        return 'Course Referrer: %s' % (self.context.__name__)
    14961514   
    14971515    @grok.action('Save and return')
Note: See TracChangeset for help on using the changeset viewer.