Changeset 16492 for main


Ignore:
Timestamp:
25 May 2021, 06:20:09 (4 years ago)
Author:
Henrik Bettermann
Message:

Change admission slip for pt students.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
Files:
2 edited

Legend:

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

    r16489 r16492  
    508508"""
    509509
     510    @property
     511    def post_text_pt(self):
     512        return """
     513Please note that at the point of registration for your programme of study (course), you will be required to present the following documents: Current UTME result slip where available, WAEC/NECO (0' Level) result, Birth certificate or sworn affidavit of age, and health certificate from a recognized Medical Centre.
     514
     515All credentials (original) will be checked during registration. This admission will be cancelled at any point in time it is found that your claims in the application form are false.
     516
     517You are required to show evidence of the result / credentials you presented on application for admission.
     518
     519Fees are paid through bank draft only. Fees can be paid using any of the following options: Professional courses N180,000 (One Hundred and Eighty Thousand Naira only) and Non- Professional N150,000 (One Hundred and Fifty Thousand Naira only).
     520
     521Your Student Id (indicated above) is your login to the University portal. As an indication of your acceptance of this offer of admission, you should immediatelty raise a draft of fees above at the beginning of the session,. Install mental payments of not more than two installments, may be allowed under exceptional circumstances. Fees once paid are not refundable.
     522
     523It is advisable that you keep the original receipts of fees paid and present them on demand.
     524
     525Resumption Date: The University opens for fresh students with online registration starting from Monday 28th September, 2020. The date for physical resumption is 14th November, 2020.
     526
     527All credentials, O'Level Results, Birth Certificate/Age Declaration, UTME Result Slip where available (Original) will be checked during registration. This admission will be cancelled at any point in time it is found that any of your claims in the application form is false.
     528
     529Conduct: All students are expected to conduct themselves properly and dress decently on campus, as well as obey all rules and regulations as failure to comply will attract appropriate sanctions.
     530
     531We wish you a successful academic career in Igbinedion University.
     532
     533Congratulations!
     534
     535<img src="${signature_benji_img_path}" valign="-20" height="38" width="86" />
     536
     537Friday Benji Bakare Esq.
     538Registrar
     539registrar@iuokada.edu.ng
     54008035902949
     541"""
     542
    510543    def render(self):
    511544        students_utils = getUtility(IStudentsUtils)
     
    513546            os.path.dirname(__file__), 'static', 'watermark.pdf')
    514547        watermark = open(watermark_path, 'rb')
     548        if self.context.current_mode.endswith('_pt'):
     549            return students_utils.renderPDFAdmissionLetter(self,
     550                self.context.student, omit_fields=self.omit_fields,
     551                pre_text=self.pre_text_ug, post_text=self.post_text_pt,
     552                watermark=watermark)
    515553        if self.context.is_postgrad:
    516554            file_path = os.path.join(
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_browser.py

    r16409 r16492  
    190190        print "Sample PDF course_registration_clearance.pdf written to %s" % path
    191191
    192     def test_student_admission_letter(self):
     192    def test_student_admission_letters(self):
    193193        self.certificate.study_mode = 'ug_ft'
    194194        # Student cant login if their password is not set
     
    228228        open(path, 'wb').write(self.browser.contents)
    229229        print "Sample PDF PG admission_slip.pdf written to %s" % path
     230        self.certificate.study_mode = 'ug_pt'
     231        self.browser.open(self.student_path)
     232        self.browser.getLink("Base Data").click()
     233        self.browser.getLink("Download admission letter").click()
     234        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     235        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     236        path = os.path.join(samples_dir(), 'pt_admission_slip.pdf')
     237        open(path, 'wb').write(self.browser.contents)
     238        print "Sample PDF PT admission_slip.pdf written to %s" % path
Note: See TracChangeset for help on using the changeset viewer.