Ignore:
Timestamp:
1 Dec 2012, 17:48:59 (12 years ago)
Author:
Henrik Bettermann
Message:

Add 'Create all students' button on statistics page. There we can immediately see if there are any admitted applicants.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

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

    r9701 r9759  
    601601        else:
    602602            self.flash(_('No student could be created.'))
    603         self.redirect(self.url(self.context, u'@@manage')+'?tab2')
     603        self.redirect(self.url(self.context, u'statistics'))
    604604        return
    605605
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/viewlets.py

    r9070 r9759  
    125125    target = 'statistics'
    126126
    127 class ApplicantsContainerStatisticsActionButton2(ApplicantsContainerStatisticsActionButton):
     127class ApplicantsContainerStatisticsActionButton2(
     128        ApplicantsContainerStatisticsActionButton):
    128129    grok.order(3)
    129130    grok.view(ApplicantsContainerPage)
     
    136137    text = _('Manage container')
    137138    target = 'manage'
     139
     140class AllStudentsCreateActionButton(ManageActionButton):
     141    grok.order(1)
     142    grok.context(IApplicantsContainer)
     143    grok.view(ApplicantsStatisticsPage)
     144    grok.require('waeup.managePortal')
     145    icon = 'actionicon_entrance.png'
     146    text = _('Create all student records')
     147    target ='createallstudents'
    138148
    139149class ApplicantViewActionButton(ManageActionButton):
Note: See TracChangeset for help on using the changeset viewer.