Ignore:
Timestamp:
13 Oct 2006, 12:36:47 (18 years ago)
Author:
joachim
Message:

pins overview now shows first 10 unused and all used pins

Location:
WAeUP_SRP/trunk/skins/waeup_pins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_pins/batch_index_html.pt

    r543 r688  
    22
    33  <metal:body use-macro="here/main_template/macros/master">
     4    <metal:block fill-slot="header">
     5      <a href=""
     6         tal:attributes="href string:${here/academicsParent}">
     7        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
     8        Up one level
     9      </a>
     10      <h3 tal:content="here/title_or_id" />
     11      <div tal:condition="nothing" tal:content="info/container_path"/>
     12    </metal:block>
    413
    514    <metal:main fill-slot="main">
     
    716      </span>
    817      <span tal:condition="python:not isAnon and info">
    9 
    10         <h3>Unused PINs</h3>
    11         <br />
    1218        <span tal:omit-tag=""
    1319              tal:content="structure python: info['batch_doc'].render(proxy=info['batch_doc'],
     
    1622              />
    1723        <br />
     24        <h3>Unused</h3>
    1825        <table>
    1926          <tr tal:repeat="pin info/unused">
    2027            <td tal:content="pin/serial" />
    2128            <td tal:content="pin/pin" />
     29          </tr>
     30        </table>
     31        <h3>Used</h3>
     32        <table>
     33          <tr tal:repeat="pin info/used">
     34            <td tal:content="pin/serial" />
     35            <td tal:content="pin/pin" />
     36            <td tal:content="pin/student" />
    2237          </tr>
    2338        </table>
  • WAeUP_SRP/trunk/skins/waeup_pins/getBatchInfo.py

    r535 r688  
    1010# $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $
    1111"""
    12 return Info about the current Student
     12return Info about the current Batch
    1313"""
    1414
     
    2222info['id'] = batch.getId()
    2323info['title'] = batch.Title or 'empty Title'
    24 info['unused'] = batch.getContent().getUnusedPins()
     24info['unused'],info['used'] = batch.getContent().getUnusedPins()
    2525return info
Note: See TracChangeset for help on using the changeset viewer.