EduploneExam/skins/EduploneExam exam_multiplechoice.pt,1.5,1.6 exam_singlechoice.pt,1.3,1.4 exam_truefalse.pt,1.3,1.4

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

Modified Files:
	exam_multiplechoice.pt exam_singlechoice.pt exam_truefalse.pt 
Log Message:
much nicer result-views

Index: exam_truefalse.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_truefalse.pt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** exam_truefalse.pt	18 Dec 2004 14:04:26 -0000	1.3
--- exam_truefalse.pt	21 Dec 2004 00:49:44 -0000	1.4
***************
*** 50,71 ****
                      
          <h2 tal:content="currentQuestion/title" />
!         <bR />
          <span tal:content="structure python:currentQuestion.getQuestion()" />
        
!         <br/><br/>
  
!         <table border="0" 
                 tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
  
!           <tr>
!             <td>Challange</td>
!             <td>UserAnswer</td>
!             <td>correct?</td>
!           </tr>
  
            <tr tal:repeat="answer python:currentQuestion.contentValues()">
  
              <td tal:content="python: answer.getChallange()" />
!             <td tal:content="python: responseObj[answer.UID()]" />
              <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
                  
--- 50,89 ----
                      
          <h2 tal:content="currentQuestion/title" />
! 
          <span tal:content="structure python:currentQuestion.getQuestion()" />
        
!         <br/>
  
!         <table border="0"
!                class="listing"
!                summary="user result" 
                 tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
  
!           <thead>
!             <tr><th i18n:translate="label_challange">challange</th>
!                 <th i18n:translate="label_useranswer">user answer</th>
!                 <th i18n:translate="label_is_this_correct">correct?</th>
!             </tr>
!           </thead>
  
            <tr tal:repeat="answer python:currentQuestion.contentValues()">
  
              <td tal:content="python: answer.getChallange()" />
!             <td> 
! 
!                 <input type="radio" value="1" disabled="disabled"
!                        tal:attributes="name  python:'##'.join((currentQuestion.UID(), answer.UID()));
!                                        checked python:test(responseObj[answer.UID()]=='1',
!                                                       'checked', None)"/>
!                     <small i18n:translate="label_correct">correct</small>
! 
!                 <input type="radio" value="0" disabled="disabled"
!                        tal:attributes="name  python:'##'.join((currentQuestion.UID(), answer.UID()));
!                                        checked python:test(responseObj[answer.UID()]in ['0', None],
!                                                       'checked', None)"/>
!                     <small i18n:translate="label_incorrect">incorrect</small>
! 
! 
!             </td>
              <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
                  

Index: exam_singlechoice.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_singlechoice.pt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** exam_singlechoice.pt	18 Dec 2004 14:04:26 -0000	1.3
--- exam_singlechoice.pt	21 Dec 2004 00:49:44 -0000	1.4
***************
*** 46,67 ****
                      
          <h2 tal:content="currentQuestion/title" />
!         <bR />
          <span tal:content="structure python:currentQuestion.getQuestion()" />
        
!         <br/><br/>
  
          <table border="0" 
                 tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
  
!           <tr>
!             <td>Challange</td>
!             <td>UserAnswer</td>
!             <td>correct?</td>
!           </tr>
  
            <tr tal:repeat="answer python:currentQuestion.contentValues()">
  
              <td tal:content="python: answer.getChallange()" />
!             <td tal:content="python: responseObj[answer.UID()]" />
              <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
                  
--- 46,75 ----
                      
          <h2 tal:content="currentQuestion/title" />
! 
          <span tal:content="structure python:currentQuestion.getQuestion()" />
        
!         <br/>
  
          <table border="0" 
+                class="listing"
+                summary="user result"
                 tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
  
!           <thead>
!             <tr><th i18n:translate="label_challange">challange</th>
!                 <th i18n:translate="label_useranswer">user answer</th>
!                 <th i18n:translate="label_is_this_correct">correct?</th>
!             </tr>
!           </thead>
  
            <tr tal:repeat="answer python:currentQuestion.contentValues()">
  
              <td tal:content="python: answer.getChallange()" />
!             <td> 
!                 <input type="radio" disabled="disabled"
!                        tal:attributes="name  python: currentQuestion.UID();
!                                        value python: answer.UID();
!                                        checked python:test(responseObj[answer.UID()], 'checked', None)" />
!             </td>
              <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
                  

Index: exam_multiplechoice.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_multiplechoice.pt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** exam_multiplechoice.pt	18 Dec 2004 14:04:26 -0000	1.5
--- exam_multiplechoice.pt	21 Dec 2004 00:49:44 -0000	1.6
***************
*** 51,72 ****
                      
          <h2 tal:content="currentQuestion/title" />
!         <bR>
          <span tal:content="structure python:currentQuestion.getQuestion()" />
        
!         <br/><br/>
  
          <table border="0" 
                 tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
  
!           <tr>
!             <td>Challange</td>
!             <td>UserAnswer</td>
!             <td>correct?</td>
!           </tr>
  
            <tr tal:repeat="answer python:currentQuestion.contentValues()">
  
              <td tal:content="python: answer.getChallange()" />
!             <td tal:content="python: responseObj[answer.UID()]" />
              <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
                  
--- 51,79 ----
                      
          <h2 tal:content="currentQuestion/title" />
!         
          <span tal:content="structure python:currentQuestion.getQuestion()" />
        
!         <br/>
  
          <table border="0" 
+                class="listing"
+                summary="user result"
                 tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
  
!           <thead>
!             <tr><th i18n:translate="label_challange">challange</th>
!                 <th i18n:translate="label_useranswer">user answer</th>
!                 <th i18n:translate="label_is_this_correct">correct?</th>
!             </tr>
!           </thead>
  
            <tr tal:repeat="answer python:currentQuestion.contentValues()">
  
              <td tal:content="python: answer.getChallange()" />
!             <td>
!                 <input type="checkbox" disabled="disabled"
!                        tal:attributes="name python:'##'.join((currentQuestion.UID(), answer.UID()));
!                                        checked python:test(responseObj[answer.UID()]=='on','checked', None)" />
!             </td>
              <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
                  
***************
*** 75,78 ****
--- 82,86 ----
          </table>        
  
+ 
      </div>
  



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
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.