Ignore:
Timestamp:
4 Apr 2014, 07:27:46 (11 years ago)
Author:
Henrik Bettermann
Message:

Colorize flash messages correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py

    r11571 r11579  
    8080    def update(self):
    8181        if self.context.p_state == 'paid':
    82             self.flash(_('This ticket has already been paid.'))
     82            self.flash(_('This ticket has already been paid.'), type='warning')
    8383            return
    8484        student = self.context.student
     
    8787        student.writeLogMessage(self, log)
    8888        if not success:
    89             self.flash(msg)
     89            self.flash(msg, type='danger')
    9090            return
    9191        write_payments_log(student.student_id, self.context)
     
    113113    def update(self):
    114114        if self.context.p_state == 'paid':
    115             self.flash(_('This ticket has already been paid.'))
     115            self.flash(_('This ticket has already been paid.'), type='warning')
    116116            return
    117117        applicant = self.context.__parent__
     
    120120        applicant.writeLogMessage(self, log)
    121121        if not success:
    122             self.flash(msg)
     122            self.flash(msg, type='danger')
    123123            return
    124124        write_payments_log(applicant.applicant_id, self.context)
Note: See TracChangeset for help on using the changeset viewer.