Ignore:
Timestamp:
15 Apr 2021, 07:20:26 (4 years ago)
Author:
Henrik Bettermann
Message:

Enable managers to remove all flash notices of students in a department.

File:
1 edited

Legend:

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

    r16235 r16459  
    560560            "'All students, who requested clearance in this department, will be cleared. Are you sure?'")
    561561
     562class RemoveFlashDepartmentStudentsActionButton(ManageActionButton):
     563    """ 'Remove all flash notices' button for departments.
     564    """
     565    grok.context(IDepartment)
     566    grok.view(DepartmentPage)
     567    grok.name('removeflashdepartmentstudents')
     568    grok.require('waeup.manageStudent')
     569    icon = 'actionicon_wipe.png'
     570    text = _('Remove all flash notices')
     571    target = 'removeflash'
     572    grok.order(5)
     573
     574    @property
     575    def onclick(self):
     576        return "return window.confirm(%s);" % _(
     577            "'Flash notices of all students in this department will be removed. Are you sure?'")
     578
    562579class ManageCourseActionButton(ManageActionButton):
    563580    """ 'Edit settings' button for courses.
Note: See TracChangeset for help on using the changeset viewer.