- Timestamp:
- 29 Jan 2014, 11:23:13 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/layout.py
r10990 r10999 100 100 msg = _('\'Are you sure?\'') 101 101 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 102 108 def render(self): 103 109 if not self.available(): … … 108 114 msg = translate(self.msg, context=self.form.request) 109 115 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) 112 119 ) 113 120
Note: See TracChangeset for help on using the changeset viewer.