Ignore:
Timestamp:
1 May 2011, 12:00:22 (14 years ago)
Author:
Henrik Bettermann
Message:

Implement department manage page by using jQueryUI tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/tables.py

    r5945 r6002  
    4848        delcol = Col(header=' ', sortable=False,
    4949                     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])
    5552
    5653        if checkPermission('waeup.manageUniversity', self.context.courses):
    5754            cols = list(cols)
    58             cols.append(delcol)
     55            cols = [delcol] + cols
    5956            cols = tuple(cols)
    6057        self.coursetable = Table('Courses', cols=cols)
     
    7572        delcol = Col(header='&nbsp;', sortable=False,
    7673                     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])
    8276
    8377        if checkPermission('waeup.manageUniversity', self.context.certificates):
    8478            certcols = list(certcols)
    85             certcols.append(delcol)
     79            certcols = [delcol] + certcols
    8680            certcols = tuple(certcols)
    8781
Note: See TracChangeset for help on using the changeset viewer.