Changeset 11794


Ignore:
Timestamp:
16 Sep 2014, 06:21:38 (10 years ago)
Author:
Henrik Bettermann
Message:

Show flash message on general search page for the academics section.

Location:
main/waeup.kofa/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r11790 r11794  
    441.3dev (unreleased)
    55===================
     6
     7* Show flash message on general search page for the academics section.
    68
    79* Fix CertificateCourseProcessor. Mandatory is not a required field
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/workflow.py

    r10358 r11794  
    184184@grok.subscribe(IApplicantBaseData, IWorkflowTransitionEvent)
    185185def handle_applicant_transition_event(obj, event):
    186     """Append message to applicant history when transition happened.
     186    """Append message to applicant history and lock form
     187    when transition happened.
    187188    """
    188189    msg = event.transition.user_data['msg']
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/browser.txt

    r11254 r11794  
    713713  >>> 'Search Results' in browser.contents
    714714  False
     715  >>> '<div class="alert alert-warning">No object found.</div>' in browser.contents
     716  True
    715717
    716718  >>> browser.getControl(name='query').value = ""
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r11439 r11794  
    752752        self.query = query
    753753        self.hitlist = search(query=self.query, view=self)
     754        if not self.hitlist:
     755            self.flash(_('No object found.'), type="warning")
    754756        return
    755757
Note: See TracChangeset for help on using the changeset viewer.