Changeset 6108


Ignore:
Timestamp:
15 May 2011, 17:08:50 (14 years ago)
Author:
Henrik Bettermann
Message:

Use jquery datatables also in ApplicantsRootManageFormPage?.

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

Legend:

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

    r6107 r6108  
    9999    def update(self):
    100100        tabs.need()
    101         #warning.need()
     101        datatable.need()
    102102        return super(ApplicantsRootManageFormPage, self).update()
    103103
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantsrootmanagepage.pt

    r6107 r6108  
    2929<div id="tab-1">
    3030  <h3 tal:content="view/subunits">Applicants Containers</h3>
    31   <table class="zebra">
     31  <table class="display dataTableManage">
    3232    <thead>
    3333      <tr>
    34         <th>&nbsp;</th><th>Code</th><th>Title</th>
     34        <th>&nbsp;</th><th>Year</th><th>Code</th><th>Title</th>
    3535      </tr>
    3636    </thead>
    3737    <tbody>
    38       <tr tal:repeat="ac context/values">
    39         <td>
    40           <input type="checkbox"
    41                  name="val_id"
    42                  tal:attributes="value ac/__name__" />
    43         </td>
    44         <td>
    45           <a tal:attributes="href python: view.url(ac)"
    46              tal:content="ac/__name__">
    47                 ID
    48           </a>
    49         </td>
    50         <td>
    51           <span tal:content="ac/title">
    52            ID
    53           </span>
    54         </td>
    55       </tr>
     38    <tr tal:repeat="entry context/values"
     39        class="gradeB">
     40     <td>
     41      <input type="checkbox"
     42                 name="val_id"
     43                 tal:attributes="value entry/__name__" />
     44     </td>
     45      <td tal:content="entry/year">Year
     46      </td>
     47      <td>
     48        <a href=""
     49           tal:attributes="href python:view.url(entry)"
     50           tal:content="entry/__name__">Code</a>
     51      </td>
     52      <td tal:content="entry/title">Title
     53      </td>
     54    </tr>
    5655    </tbody>
    5756  </table>
Note: See TracChangeset for help on using the changeset viewer.