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

Further adjustments of forms, tables and buttons in browser module.

File:
1 edited

Legend:

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

    r10990 r10999  
    100100    msg = _('\'Are you sure?\'')
    101101
     102    def __init__(self, label, style='', **options):
     103        super(JSAction, self).__init__(label, **options)
     104        self.style = style
     105        if style == '':
     106            self.style = 'default'
     107
    102108    def render(self):
    103109        if not self.available():
     
    108114        msg = translate(self.msg, context=self.form.request)
    109115        return ('<input type="submit" id="%s" name="%s" value="%s"'
    110                 ' class="btn" onclick="return confirmPost(%s)" />' %
    111                 (self.__name__, self.__name__, escape(label, quote=True), msg)
     116                ' class="btn btn-%s" onclick="return confirmPost(%s)" />' %
     117                (self.__name__, self.__name__, escape(label, quote=True),
     118                 self.style, msg)
    112119                )
    113120
Note: See TracChangeset for help on using the changeset viewer.