Changeset 6002 for main/waeup.sirp/trunk/src/waeup/sirp/browser/tables.py
- Timestamp:
- 1 May 2011, 12:00:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/tables.py
r5945 r6002 48 48 delcol = Col(header=' ', sortable=False, 49 49 data = [ 50 '<form method="post">' 51 '<input type="submit" name="delcourse" value="Delete" />' 52 '<input type="hidden" name="code" value="%s" />' 53 '</form>' % (data[x].code) 54 for x in data]) 50 '<input type="checkbox" name="val_id" value="%s" />' 51 % (data[x].code) for x in data]) 55 52 56 53 if checkPermission('waeup.manageUniversity', self.context.courses): 57 54 cols = list(cols) 58 cols .append(delcol)55 cols = [delcol] + cols 59 56 cols = tuple(cols) 60 57 self.coursetable = Table('Courses', cols=cols) … … 75 72 delcol = Col(header=' ', sortable=False, 76 73 data = [ 77 '<form method="post">' 78 '<input type="submit" name="delcert" value="Delete" />' 79 '<input type="hidden" name="code" value="%s" />' 80 '</form>' % (data[x].code) 81 for x in data]) 74 '<input type="checkbox" name="val_id" value="%s" />' 75 % (data[x].code) for x in data]) 82 76 83 77 if checkPermission('waeup.manageUniversity', self.context.certificates): 84 78 certcols = list(certcols) 85 certcols .append(delcol)79 certcols = [delcol] + certcols 86 80 certcols = tuple(certcols) 87 81
Note: See TracChangeset for help on using the changeset viewer.