Ignore:
Timestamp:
14 Dec 2011, 07:04:05 (13 years ago)
Author:
Henrik Bettermann
Message:

Add StudentApplication? view components.

File:
1 edited

Legend:

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

    r7337 r7340  
    5858from waeup.sirp.students.vocabularies import StudyLevelSource
    5959from waeup.sirp.browser.resources import toggleall
     60from waeup.sirp.applicants.interfaces import IApplicantBaseData
    6061from waeup.sirp.hostels.hostel import NOT_OCCUPIED
    6162from waeup.sirp.utils.helpers import send_mail
     
    100101    def title(self):
    101102        return self.context.fullname
     103
     104class ApplicationBreadcrumb(Breadcrumb):
     105    """A breadcrumb for the application data.
     106    """
     107    grok.context(IApplicantBaseData)
     108    title = 'Application'
    102109
    103110class SudyCourseBreadcrumb(Breadcrumb):
     
    468475            write_log_message(self, 'saved: % s' % fields_string)
    469476        return
     477
     478class StudentApplicationDisplayFormPage(SIRPDisplayFormPage):
     479    """ Page to display application data
     480    """
     481    grok.context(IApplicantBaseData)
     482    grok.name('index')
     483    grok.require('waeup.viewStudent')
     484    form_fields = grok.AutoFields(IApplicantBaseData)
     485    title = 'Application Data'
     486    pnav = 4
     487
     488    @property
     489    def label(self):
     490        return '%s: Application Data' % self.context.getStudent().fullname
    470491
    471492class StudentClearanceDisplayFormPage(SIRPDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.