Changeset 6455


Ignore:
Timestamp:
22 Jun 2011, 21:34:46 (13 years ago)
Author:
Henrik Bettermann
Message:

Use jquery datatable for search results.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes
Files:
2 edited

Legend:

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

    r6451 r6455  
    44from datetime import datetime
    55from hurry.workflow.interfaces import InvalidTransitionError
     6from waeup.sirp.browser.resources import datatable
    67from waeup.sirp.browser import WAeUPPage, WAeUPAddFormPage
    78from waeup.sirp.browser.breadcrumbs import Breadcrumb
     
    116117
    117118    def update(self, *args, **kw):
     119        datatable.need()
    118120        form = self.request.form
    119121        self.hitlist = []
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/searchpage.pt

    r6453 r6455  
    2121    <input type="hidden" name="old_searchtype"
    2222         tal:attributes="value view/searchtype" />
    23     <table class = "zebra">
     23    <table class="display dataTableManage">
    2424      <thead>
    2525        <tr>
    2626          <th>&nbsp;</th>
    27           <th>Serial</th><th>AC</th><th>Status</th><th>History</th>
     27          <th width="50px">Serial</th><th>AC</th><th>Status</th><th>History</th>
    2828        </tr>
    2929      </thead>
     
    4141      </tbody>
    4242    </table>
    43 
    44     <input type="submit" name="disable" value="Disable ACs" />
    45     <input type="submit" name="enable" value="Enable ACs" />
     43    <div id="actionsView">
     44        <input type="submit" name="disable" value="Disable ACs" />
     45        <input type="submit" name="enable" value="Enable ACs" />
     46    </div>
    4647
    4748  </div>
Note: See TracChangeset for help on using the changeset viewer.