Changeset 16993


Ignore:
Timestamp:
6 Jul 2022, 07:49:44 (2 years ago)
Author:
Henrik Bettermann
Message:

More customizations.

Location:
main/kofacustom.lpng/trunk/src/kofacustom/lpng
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/browser/pages.py

    r16991 r16993  
    2424from kofacustom.lpng.interfaces import (
    2525    ICustomSessionConfiguration, ICustomSessionConfigurationAdd)
    26 from waeup.kofa.browser.viewlets import FacultiesTab, ManageReports
    27    
    28 class FacultiesTab(FacultiesTab):
    29     """Faculties-tab in primary navigation.
    30     """
    31     grok.context(IKofaObject)
    32    
    33     @property
    34     def link_target(self):
    35         return
    36        
    37 class ManageReports(ManageReports):
    38     """A link to reports, placed in upper left box.
    39     """
    40    
    41     def render(self):
    42         return ''
    4326
    4427class CustomSessionConfigurationAddFormPage(SessionConfigurationAddFormPage):
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/interfaces.py

    r16983 r16993  
    2121from zc.sourcefactory.basic import BasicSourceFactory
    2222from waeup.kofa.interfaces import (SimpleKofaVocabulary,
    23     ISessionConfiguration, academic_sessions_vocab)
     23    ISessionConfiguration, academic_sessions_vocab, IKofaObject,
     24    DisablePaymentGroupSource)
    2425
    2526_ = MessageFactory = zope.i18nmessageid.MessageFactory('kofacustom.lpng')
    2627
    27 class ICustomSessionConfiguration(ISessionConfiguration):
     28class ICustomSessionConfiguration(IKofaObject):
    2829    """A session configuration object.
    2930    """
    3031
    31     # Base fees, do not remove.
    32 
    33     clearance_fee = schema.Float(
    34         title = _(u'Acceptance Fee'),
    35         default = 0.0,
    36         required = False,
     32    academic_session = schema.Choice(
     33        title = _(u'Session'),
     34        source = academic_sessions_vocab,
     35        default = None,
     36        required = True,
     37        readonly = True,
    3738        )
    3839
    39     booking_fee = schema.Float(
    40         title = _(u'Bed Booking Fee'),
    41         default = 0.0,
     40    payment_disabled = schema.List(
     41        title = _(u'Payment disabled'),
     42        value_type = schema.Choice(
     43            source = DisablePaymentGroupSource(),
     44            ),
    4245        required = False,
     46        defaultFactory=list,
    4347        )
    4448
    45     maint_fee = schema.Float(
    46         title = _(u'Rent (fallback)'),
    47         default = 0.0,
    48         required = False,
    49         )
    50 
    51     late_registration_fee = schema.Float(
    52         title = _(u'Late Course Reg. Fee'),
    53         default = 0.0,
    54         required = False,
    55         )
    56 
    57     transcript_fee = schema.Float(
    58         title = _(u'Transcript Fee'),
    59         default = 0.0,
    60         required = False,
    61         )
    62 
    63     transfer_fee = schema.Float(
    64         title = _(u'Transfer Fee'),
    65         default = 0.0,
    66         required = False,
    67         )
     49    def getSessionString():
     50        """Return the session string from the vocabulary.
     51        """
    6852
    6953    interswitch_enabled = schema.Bool(
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/locales/en/LC_MESSAGES/waeup.kofa.po

    r16991 r16993  
    1919
    2020msgid "Applicants Containers"
    21 msgstr ""
     21msgstr "Registrants Containers"
    2222
    2323msgid "Applicants"
    24 msgstr ""
     24msgstr "Registrants"
    2525
    2626msgid "Applicant"
    27 msgstr ""
     27msgstr "Registrant"
    2828
    2929msgid "Applicants Section"
     
    3131
    3232msgid "Registration Number or Applicant Id:"
    33 msgstr ""
     33msgstr "Registration Number or Registrant Id:"
    3434
    3535msgid "Number of Applicants"
    36 msgstr ""
     36msgstr "Number of Registrants"
    3737
    3838msgid "Application"
    3939msgstr "Registration"
     40
     41msgid "Manage applicants section"
     42msgstr "Manage registration section"
     43
     44msgid "Add applicants container"
     45msgstr "Add registrants container"
     46
     47msgid "Application Period"
     48msgstr "Registration Period"
     49
     50msgid "Find applicants"
     51msgstr "Find registrants"
     52
     53msgid "Create student"
     54msgstr "Create member"
     55
     56msgid "Create students"
     57msgstr "Create members"
     58
     59msgid "Applicant Id"
     60msgstr "Registrant Id"
     61
     62msgid "Find applicant"
     63msgstr "Find registrant"
     64
     65msgid "Edit academic session ${a} configuration"
     66msgstr "Edit session ${a} configuration"
     67
     68msgid ""
     69"User Name, Student or Applicant Id, Matriculation or Registration Number"
     70msgstr "User Name, Registrant Id or Registration Number"
    4071
    4172#. Default: "You don't have an account because you are a fresh student, or your student record has just been created? Acquire a Password Activation Code (PWD) and inititialize your student account <strong><a href=\"setpassword\"> here</a></strong>."
     
    5283msgid "login_trouble4"
    5384msgstr ""
    54 "You forgot your user name, applicant id or password? <a href=\"changepw\" "
     85"You forgot your user name, registrant id or password? <a href=\"changepw\" "
    5586"class=\"btn btn-success btn-xs\">Request a new password.</a>"
    5687
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/utils/utils.py

    r16991 r16993  
    2828        'donation': 'Donation',
    2929        }
     30
     31    DISABLE_PAYMENT_GROUP_DICT = {
     32        }
     33
     34    APP_CATS_DICT = {
     35        'basic': 'Basic Application',
     36        'no': 'no application',
     37        }
Note: See TracChangeset for help on using the changeset viewer.