Ignore:
Timestamp:
20 Sep 2011, 06:57:35 (13 years ago)
Author:
Henrik Bettermann
Message:

Display total credits.

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

Legend:

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

    r6802 r6803  
    575575            self.context.getStudent().name,self.context.level_title)
    576576
     577    @property
     578    def total_credits(self):
     579        total_credits = 0
     580        for key, val in self.context.items():
     581            total_credits += val.credits
     582        return total_credits
     583
    577584class StudyLevelManageActionButton(ManageActionButton):
    578585    grok.order(1)
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studylevelpage.pt

    r6802 r6803  
    2020    </tr>
    2121  </tal:block>
     22  <tr>
     23    <td>
     24      <label>Total Credits:</label>
     25    </td>
     26    <td>
     27      <span tal:replace="view/total_credits">TOTAL</span>
     28    </td>
     29  </tr>
    2230</tbody>
    2331</table>
Note: See TracChangeset for help on using the changeset viewer.