Ignore:
Timestamp:
25 Feb 2022, 06:16:44 (3 years ago)
Author:
Henrik Bettermann
Message:

Disable editing lga.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/browser.py

    r16721 r16836  
    5555    def manage_payments_allowed(self):
    5656        return checkPermission('waeup.manageStudent', self.context)
     57
     58class CustomStudentClearanceEditFormPage(NigeriaStudentClearanceEditFormPage):
     59    """ View to edit student clearance data by student
     60    """
     61
     62    @property
     63    def form_fields(self):
     64        if self.context.is_postgrad:
     65            form_fields = grok.AutoFields(ICustomPGStudentClearance).omit(
     66            'clearance_locked', 'nysc_location', 'clr_code', 'officer_comment',
     67            'physical_clearance_date')
     68        else:
     69            form_fields = grok.AutoFields(ICustomUGStudentClearance).omit(
     70            'clearance_locked', 'clr_code', 'officer_comment',
     71            'physical_clearance_date')
     72            #form_fields['date_of_birth'].for_display = True
     73            #form_fields['nationality'].for_display = True
     74            form_fields['lga'].for_display = True
     75        return form_fields
Note: See TracChangeset for help on using the changeset viewer.