EduploneTest/skins/EduploneTest eduplone_testingResults.pt,1.5,1.6

Nils Haagen <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneTest/skins/EduploneTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24011/skins/EduploneTest

Modified Files:
	eduplone_testingResults.pt 
Log Message:
interface userResults, sortable table

Index: eduplone_testingResults.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/skins/EduploneTest/eduplone_testingResults.pt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** eduplone_testingResults.pt	27 Oct 2004 20:02:12 -0000	1.5
--- eduplone_testingResults.pt	7 Nov 2004 18:35:43 -0000	1.6
***************
*** 32,55 ****
  <!--================================================-->
  
!         <table border="1">
!             <tr><td i18n:translate="label_user"><b>User</b></td>
! 		<td i18n:translate="label_totalScore"><b>Score (total)</b></td>
!                 <div tal:repeat="quest allquest">
!                     <td tal:content="quest/title" />
!                 </div>
!             </tr>
  
!             <div tal:repeat="user allusers">
!                 <tr tal:define="answers python:user.getAnswers()">
                       <td valign="top">
                          <a tal:content="python: user.getId()"
                             tal:attributes="href python:here.users.absolute_url() + '/' + user.id + '/eduplone_userResults2'" /> :
- 
- 
                      </td>
! 		    <td> <b tal:content="python: round(here.score_CalculateTotal(user.getId()),2)" /> / <i tal:replace="python: here.getTotalAvailableScore()" /></td>
                      <td tal:repeat="quest allquest"
                          tal:attributes="valign python:'top'">
! 
                          <b tal:content="python: round(here.score_CalculateQuestion(quest.getId(), user.id),2)" />
                           /
--- 32,66 ----
  <!--================================================-->
  
!         <table border="1"
! 	       id="sortable"
! 	       class="listing"
! 	       summary="UserResults">
! 	    
! 	    <thead>
! 	    <metal:block tal:condition="batch|not:standalone|nothing">
! 	    
!         	<tr><th i18n:translate="label_user"><b>User</b></th>
! 		    <th i18n:translate="label_totalScore"><b>Score (total)</b></th>
!                 	<th  tal:repeat="quest allquest"
! 		    	     tal:content="quest/title" />
!         	</tr>
! 	    </metal:block>
! 	    </thead>
  
!                 <tr tal:repeat="user allusers">
! 		    <tal tal:define="answers python:user.getAnswers()">
                       <td valign="top">
                          <a tal:content="python: user.getId()"
                             tal:attributes="href python:here.users.absolute_url() + '/' + user.id + '/eduplone_userResults2'" /> :
                      </td>
! 		    <td> 
! 			<nobr>
! 			    <b tal:content="python: round(here.score_CalculateTotal(user.getId()),2)" /> / <i tal:replace="python: here.getTotalAvailableScore()" />
! 			</nobr>
! 		    </td>
! 			    
                      <td tal:repeat="quest allquest"
                          tal:attributes="valign python:'top'">
! 			<nobr>
                          <b tal:content="python: round(here.score_CalculateQuestion(quest.getId(), user.id),2)" />
                           /
***************
*** 57,65 ****
                              <a tal:attributes="href python:here.users.absolute_url() + '/' + user.getId() + '/eduplone_scoreOverride?qId=' + quest.getId()" >
                              &raquo;</a>
! 
                      </td>
                   </tr>
-             </div>
- 
           </table>
  <!--=======================================================-->
--- 68,75 ----
                              <a tal:attributes="href python:here.users.absolute_url() + '/' + user.getId() + '/eduplone_scoreOverride?qId=' + quest.getId()" >
                              &raquo;</a>
! 			</nobr>
                      </td>
+ 		    </tal>
                   </tr>
           </table>
  <!--=======================================================-->



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.