Ignore:
Timestamp:
8 Aug 2016, 08:24:34 (8 years ago)
Author:
Henrik Bettermann
Message:

Add note on application slip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/browser.py

    r13187 r14058  
    102102
    103103    @property
     104    def note(self):
     105        note = getattr(self.context.__parent__, 'application_slip_notice', None)
     106        if note:
     107            return '<br /><br />' + note
     108        pronoun = 'S/he'
     109        if self.context.sex == 'm':
     110            pronoun = 'He'
     111        else:
     112            pronoun = 'She'
     113        return '''<br /><br />
     114The applicant has declared that:
     115
     116a) %s is not a member of any secret cult and will not join any.
     117b) %s will not engage in any cult activities.
     118c) %s will not be involved in any acts of terrorism, rape, robbery, fighting, illegal gathering and
     119any activities that could disrupt peace on campus.
     120d) %s does not have and will not acquire any form of weapon, fire arms, gun knife or any weapon
     121that can cause damage to life and property.
     122e) %s will strive to be worthy in character and learning at all times.
     123
     124The applicant has acknowledged that offences will automatically lead to the expulsion from the
     125Polytechnic and also be dealt with in accordance with the law of the land.
     126
     127The applicant promises to abide by all the Rules and Regulations of the Polytechnic if offered
     128admission.
     129''' % (
     130    pronoun, pronoun, pronoun, pronoun, pronoun)
     131
     132    @property
    104133    def form_fields(self):
    105134        form_fields = grok.AutoFields(ICustomUGApplicant)
Note: See TracChangeset for help on using the changeset viewer.