Ignore:
Timestamp:
13 Jan 2012, 09:00:08 (13 years ago)
Author:
Henrik Bettermann
Message:

Page titles are deprecated. We only have labels.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
5 edited

Legend:

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

    r7459 r7467  
    4242    grok.require('waeup.manageACBatches')
    4343
    44     title = 'Access Code Batches'
     44    label = 'Access Code Batches'
    4545    pnav = 0
    4646
     
    9898    grok.require('waeup.manageACBatches')
    9999
    100     title = 'Reimport Access Code Batches'
     100    label = 'Reimport Access Code Batches'
    101101    pnav = 0
    102102
     
    129129    grok.template('searchpage')
    130130    grok.require('waeup.manageACBatches')
    131 
    132     title = 'Access Codes'
    133     pnav = 0
    134     label = 'Search and manage access codes'
     131    pnav = 0
     132    label = 'Search and Manage Access Codes'
    135133
    136134    def update(self, *args, **kw):
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/batchcontainer.pt

    r7459 r7467  
    1 <h2>Access Code Batches</h2>
    2 
    31<form method="POST">
    42  <p>
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/reimportbatchpage.pt

    r7459 r7467  
    1 <h3>Reimport Access Code Batches</h3>
    21<p> Please select the files to reimport. Please note, that batches with  same name have to be deleted before.
    32</p>
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r7459 r7467  
    6060    grok.name('index')
    6161    grok.require('waeup.Public')
    62     title = 'Applicants'
    6362    label = 'Application Section'
    6463    pnav = 3
     
    7372    grok.name('manage')
    7473    grok.template('applicantsrootmanagepage')
    75     title = 'Applicants'
    7674    label = 'Manage application section'
    7775    pnav = 3
     
    144142    grok.name('add')
    145143    grok.template('applicantscontaineraddpage')
    146     title = 'Applicants'
    147144    label = 'Add applicants container'
    148145    pnav = 3
     
    229226
    230227    @property
    231     def title(self):
     228    def label(self):
    232229        return "Applicants Container: %s" % self.context.title
    233 
    234     @property
    235     def label(self):
    236         return self.context.title
    237230
    238231class ApplicantsContainerManageFormPage(SIRPEditFormPage):
     
    251244
    252245    @property
    253     def title(self):
    254         return "Applicants Container: %s" % self.context.title
    255 
    256     @property
    257246    def label(self):
    258247        return 'Manage applicants container'
     
    342331    pnav = 3
    343332
    344     @property
    345     def title(self):
    346         return "Applicants Container: %s" % self.context.title
    347 
    348333    @action('Create application record')
    349334    def addApplicant(self, **data):
     
    381366            return 'set'
    382367        return 'unset'
    383 
    384     @property
    385     def title(self):
    386         return 'Application Record %s' % self.context.application_number
    387368
    388369    @property
     
    486467
    487468    @property
    488     def title(self):
    489         return 'Online Payment Ticket %s' % self.context.p_id
    490 
    491     @property
    492469    def label(self):
    493470        return '%s: Online Payment Ticket %s' % (
     
    650627                upload, self.context, self)
    651628        return
    652 
    653     @property
    654     def title(self):
    655         return 'Application Record %s' % self.context.application_number
    656629
    657630    @property
     
    767740    grok.template('applicanteditpage')
    768741    manage_applications = False
    769     title = u'Your Application Form'
    770742
    771743    @property
     
    879851        'firstname', 'middlename', 'lastname', 'email', 'phone')
    880852    form_fields['phone'].custom_widget = PhoneWidget
    881 
    882     @property
    883     def title(self):
    884         return "Applicants Container: %s" % self.context.title
    885853
    886854    @property
     
    936904    grok.require('waeup.Public')
    937905    grok.template('applicantregemailsent')
    938     title = 'Registration Completed'
    939906    label = 'Your registration was successful'
    940907
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser.py

    r7459 r7467  
    100100    grok.template('containerpage')
    101101    label = 'Accommodation Section'
    102     title = 'Hostels'
    103102    pnav = 5
    104103
     
    118117    grok.template('containermanagepage')
    119118    pnav = 5
    120     title = 'Hostels'
    121119    label = 'Manage accommodation section'
    122120
     
    154152    #grok.template('hosteladdpage')
    155153    form_fields = grok.AutoFields(IHostel)
    156     title = 'Hostels'
    157154    label = 'Add hostel'
    158155    pnav = 5
     
    187184        return self.context.hostel_name
    188185
    189     @property
    190     def title(self):
    191         return self.context.hostel_name
    192 
    193186class HostelManageActionButton(ManageActionButton):
    194187    grok.order(1)
     
    214207        'Release selected beds']
    215208    not_occupied = NOT_OCCUPIED
    216 
    217     @property
    218     def title(self):
    219         return self.context.hostel_name
    220209
    221210    @property
     
    310299    pnav = 5
    311300
    312     @property
    313     def title(self):
    314         co = self.context.getBedCoordinates()
    315         return '%s, Block %s, Room %s, Bed %s' % (
    316             self.context.__parent__.hostel_name, co[1], co[2], co[3])
    317 
    318301    @action('Save')
    319302    def save(self, **data):
Note: See TracChangeset for help on using the changeset viewer.