Ignore:
Timestamp:
1 Jun 2012, 11:25:22 (13 years ago)
Author:
Henrik Bettermann
Message:

Extend applicants statistics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantcontainerstatistics.pt

    r8570 r8591  
    1 <h2 i18n:domain="waeup.kofa">Container Statistics</h2>
    2 
    3 <table i18n:domain="waeup.kofa">
    4   <thead>
    5     <tr>
    6       <th i18n:translate="">Application State</th>
    7       <th i18n:translate="">Number of Applicants</th>
    8     </tr>
    9   </thead>
    10   <tbody tal:define="stats context/statistics">
    11     <tr tal:repeat="state python:('initialized',
    12         'started','paid','submitted','admitted','not admitted',
    13         'created')">
    14       <td tal:content="state">STATE</td>
    15       <td tal:content="python: stats[state] ">NUMBER</td>
    16     </tr>
    17   </tbody>
    18 </table>
     1<tal:statistics define="stats context/statistics" i18n:domain="waeup.kofa">
     2  <h2 i18n:translate="">Container Statistics</h2>
     3  <table class="span8">
     4    <thead>
     5      <tr>
     6        <th i18n:translate="" width="40%">Application State</th>
     7        <th i18n:translate="">Number of Applicants</th>
     8      </tr>
     9    </thead>
     10    <tbody>
     11      <tr tal:repeat="state python:('initialized',
     12          'started','paid','submitted','admitted','not admitted',
     13          'created')">
     14        <td tal:content="state">STATE</td>
     15        <td tal:content="python: stats[0][state] ">NUMBER</td>
     16      </tr>
     17    </tbody>
     18  </table>
     19  <table class="span8">
     20    <thead>
     21      <tr>
     22        <th i18n:translate="" width="40%">Faculty</th>
     23        <th>&nbsp;</th>
     24      </tr>
     25    </thead>
     26    <tbody>
     27      <tr tal:repeat="fac python:stats[1].keys()">
     28        <td tal:content="fac">FAC</td>
     29        <td tal:content="python: stats[1][fac] ">NUMBER</td>
     30      </tr>
     31    </tbody>
     32  </table>
     33</tal:statistics>
Note: See TracChangeset for help on using the changeset viewer.