Ignore:
Timestamp:
30 Jan 2014, 17:11:23 (11 years ago)
Author:
Henrik Bettermann
Message:

First adjustments in students module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser.py

    r10706 r11013  
    4040from waeup.kofa.browser.pages import ContactAdminForm, ExportCSVView, doll_up
    4141from waeup.kofa.browser.resources import (
    42     datepicker, datatable, tabs, warning, toggleall)
     42    datepicker, warning, toggleall)
    4343from waeup.kofa.browser.layout import jsaction, action, UtilityView
    4444from waeup.kofa.browser.interfaces import ICaptchaManager
     
    263263
    264264    def update(self, *args, **kw):
    265         datatable.need()
    266265        form = self.request.form
    267266        self.hitlist = []
     
    307306
    308307    def update(self, *args, **kw):
    309         datatable.need()
    310308        toggleall.need()
    311309        warning.need()
     
    536534    def update(self):
    537535        datepicker.need() # Enable jQuery datepicker in date fields.
    538         tabs.need()
    539536        self.tab1 = self.tab2 = ''
    540537        qs = self.request.get('QUERY_STRING', '')
     
    766763    def update(self):
    767764        datepicker.need() # Enable jQuery datepicker in date fields.
    768         tabs.need()
    769765        self.tab1 = self.tab2 = ''
    770766        qs = self.request.get('QUERY_STRING', '')
     
    987983            return
    988984        super(StudyCourseManageFormPage, self).update()
    989         tabs.need()
    990985        self.tab1 = self.tab2 = ''
    991986        qs = self.request.get('QUERY_STRING', '')
     
    994989        setattr(self, qs, 'active')
    995990        warning.need()
    996         datatable.need()
    997991        return
    998992
     
    10231017            yield(dict(code=code, title=title))
    10241018
    1025     @action(_('Add study level'))
     1019    @action(_('Add study level'), style='primary')
    10261020    def addStudyLevel(self, **data):
    10271021        level_code = self.request.form.get('addlevel', None)
     
    10821076    def update(self, SUBMIT=None):
    10831077        super(StudentTranscriptRequestPage, self).update()
    1084         tabs.need()
    10851078        self.tab1 = self.tab2 = ''
    10861079        qs = self.request.get('QUERY_STRING', '')
     
    11571150    def update(self, SUBMIT=None):
    11581151        super(StudentTranscriptRequestProcessFormPage, self).update()
    1159         tabs.need()
    11601152        self.tab1 = self.tab2 = ''
    11611153        qs = self.request.get('QUERY_STRING', '')
     
    13751367    def update(self):
    13761368        super(StudyLevelDisplayFormPage, self).update()
    1377         datatable.need()
    13781369        return
    13791370
     
    14861477    tabtwoactions = [_('Add course ticket'),
    14871478        _('Remove selected tickets'),_('Cancel')]
     1479    placeholder = _('Enter valid course code')
    14881480
    14891481    def update(self, ADD=None, course=None):
     
    14921484            return
    14931485        super(StudyLevelManageFormPage, self).update()
    1494         tabs.need()
    14951486        self.tab1 = self.tab2 = ''
    14961487        qs = self.request.get('QUERY_STRING', '')
     
    14991490        setattr(self, qs, 'active')
    15001491        warning.need()
    1501         datatable.need()
    15021492        if ADD is not None:
    15031493            if not course:
     
    17211711    def update(self):
    17221712        super(PaymentsManageFormPage, self).update()
    1723         datatable.need()
    17241713        warning.need()
    17251714        return
     
    19911980    def update(self):
    19921981        super(AccommodationManageFormPage, self).update()
    1993         datatable.need()
    19941982        warning.need()
    19951983        return
     
    26462634            return
    26472635        super(StudyLevelEditFormPage, self).update()
    2648         datatable.need()
    26492636        warning.need()
    26502637        if ADD is not None:
     
    29652952
    29662953    def update(self, SHOW=None, session=None, level=None):
    2967         datatable.need()
    29682954        self.parent_url = self.url(self.context.__parent__)
    29692955        self._set_session_values()
     
    30803066            self.redirect(self.url(self.context))
    30813067            return
    3082         datatable.need()
    30833068        self.tickets = self._searchCatalog(self.current_academic_session)
    30843069        editable_tickets = [
Note: See TracChangeset for help on using the changeset viewer.