Changeset 11839 for main/kofacustom.pcn/trunk/src/kofacustom
- Timestamp:
- 14 Oct 2014, 09:06:20 (10 years ago)
- Location:
- main/kofacustom.pcn/trunk/src/kofacustom/pcn
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.pcn/trunk/src/kofacustom/pcn/browser/pages.py
r11836 r11839 20 20 SessionConfigurationAddFormPage, SessionConfigurationManageFormPage, 21 21 LoginPage, CertificatePage, CertificateManageFormPage, DepartmentPage, 22 DepartmentManageFormPage )23 from waeup.kofa.university.interfaces import I Certificate22 DepartmentManageFormPage, CertificateAddFormPage, DepartmentAddFormPage) 23 from waeup.kofa.university.interfaces import IDepartment, ICertificate 24 24 from kofacustom.pcn.interfaces import ( 25 25 ICustomSessionConfiguration, ICustomSessionConfigurationAdd) … … 45 45 """ 46 46 grok.template('departmentmanagepage') 47 form_fields = grok.AutoFields(IDepartment).omit( 48 'code', 'score_editing_disabled') 49 50 class DepartmentAddFormPage(DepartmentAddFormPage): 51 """Department index page. 52 """ 53 form_fields = grok.AutoFields(IDepartment).omit('score_editing_disabled') 54 55 class CertificatePage(CertificatePage): 56 """Index page for certificates. 57 """ 58 grok.template('certificatepage') 59 60 form_fields = grok.AutoFields(ICertificate).omit( 61 'study_mode', 'start_level', 'end_level', 'school_fee_2', 62 'school_fee_3', 'school_fee_4', 'ratio') 63 64 class CertificateManageFormPage(CertificateManageFormPage): 65 """Manage the properties of a `Certificate` instance. 66 """ 67 grok.template('certificatemanagepage') 68 69 form_fields = grok.AutoFields(ICertificate).omit( 70 'code', 'study_mode', 'start_level', 'end_level', 'school_fee_2', 71 'school_fee_3', 'school_fee_4', 'ratio') 72 73 class CertificateAddFormPage(CertificateAddFormPage): 74 """Add-form to add certificate to a department. 75 """ 76 form_fields = grok.AutoFields(ICertificate).omit( 77 'study_mode', 'start_level', 'end_level', 'school_fee_2', 78 'school_fee_3', 'school_fee_4', 'ratio') -
main/kofacustom.pcn/trunk/src/kofacustom/pcn/locales/en/LC_MESSAGES/waeup.kofa.po
r11837 r11839 280 280 msgid "WAeUP.Kofa - Student Management System" 281 281 msgstr "WAeUP.Kofa - Online Registration System (Demo Version)" 282 283 msgid "Initial School Fee" 284 msgstr "Registration Fee" -
main/kofacustom.pcn/trunk/src/kofacustom/pcn/utils/utils.py
r11687 r11839 18 18 """Customize general helper utilities for Kofa. 19 19 """ 20 from copy import deepcopy 20 21 from waeup.kofa.utils.utils import KofaUtils 21 22 … … 24 25 """ 25 26 27 INST_TYPES_DICT = { 28 'none': '', 29 } 30 31 STUDY_MODES_DICT = { 32 'na': 'not applicable', 33 } 34 35 APP_CATS_DICT = { 36 'pal': 'Pharmacist Annual License', 37 'pl': 'Premises License', 38 'ptap': 'Pharmacy Technician Annual Permit', 39 'ppmvl': 'Patent and Proprietary Medicine Vendor License', 40 'pmrp': 'Pharmaceutical and Medical Representative Permit', 41 'sop': 'Scientific Office Permit', 42 } 43 44 PAYMENT_CATEGORIES = { 45 'registration': 'Registration Fee', 46 } 47 48 SELECTABLE_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES) 49 50 PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES) 51 52 BALANCE_PAYMENT_CATEGORIES = { 53 'registration': 'Registration Fee', 54 } 55 56 MODE_GROUPS = { 57 'All': ('all',), 58 }
Note: See TracChangeset for help on using the changeset viewer.