Ignore:
Timestamp:
2 May 2011, 11:46:10 (14 years ago)
Author:
uli
Message:

Make use of the new datatables in applicants overview page.

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

    r5982 r6012  
    8686    title = 'Applicants'
    8787    pnav = 3
    88    
     88
     89    def update(self):
     90        super(ApplicationsPage, self).update()
     91        from waeup.sirp.browser.resources import datatable
     92        datatable.need()
     93        return
     94
    8995    def getApplications(self):
    9096        """Get a list of all stored applicant containers.
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicationspage.pt

    r5862 r6012  
    1 <div>
    2   <div tal:repeat="entry view/getApplications">
    3     <a href=""
    4        tal:attributes="href entry/url"
    5        tal:content="entry/name"
    6        >Some Entry</a>
    7     -- <span tal:replace="entry/container/title">Title</span>
    8   </div>
    9 </div>
     1<table id="datatable" class="display">
     2  <thead>
     3    <tr>
     4      <th>Name</th><th>Title</th>
     5    </tr>
     6  </thead>
     7  <tbody>
     8    <tr tal:repeat="entry view/getApplications"
     9        class="gradeA">
     10      <td>
     11        <a href=""
     12           tal:attributes="href entry/url"
     13           tal:content="entry/name"
     14           >Name</a>
     15      </td>
     16      <td tal:content="entry/container/title">
     17        Title
     18      </td>
     19    </tr>
     20  </tbody>
     21</table>
Note: See TracChangeset for help on using the changeset viewer.