Changeset 5484


Ignore:
Timestamp:
24 Aug 2010, 11:56:31 (14 years ago)
Author:
uli
Message:

Let the PDE apply/edit page more look like the original.

File:
1 edited

Legend:

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

    r5453 r5484  
    3232from waeup.sirp.jambtables.util import get_applicant_data
    3333from waeup.sirp.jambtables.interfaces import (
    34     IApplicant, IApplicantContainer, IApplicantPrincipal)
     34    IApplicant, IApplicantContainer, IApplicantPrincipal, IApplicantPDEEditData)
    3535                                             
    3636
     
    107107    grok.context(IApplicant)
    108108    grok.name('edit')
    109     form_fields = grok.AutoFields(IApplicant)
    110     form_fields['fst_sit_results'].custom_widget = list_results_widget
    111     label = 'Edit Application'
     109    form_fields = grok.AutoFields(IApplicantPDEEditData)
     110
     111    @property
     112    def label(self):
     113        # XXX: Use current/upcoming session
     114        return 'Apply for Post UDE Screening Test (2009/2010)'
    112115    title = 'Edit Application'
    113116    pnav = 1
     
    119122        return
    120123
    121     @grok.action('Save and return')
    122     def saveAndReturn(self, **data):
     124    @grok.action('Final Submit')
     125    def finalsubmit(self, **data):
    123126        self.applyData(self.context, **data)
    124         self.redirect(self.url(self.context))
    125         return
    126 
    127     @grok.action('Cancel', validator=NullValidator)
    128     def cancel(self, **data):
    129         self.redirect(self.url(self.context))
     127        self.context._p_changed = True
     128        # XXX: Lock the form for editing...
    130129        return
    131130
Note: See TracChangeset for help on using the changeset viewer.