EduploneExam/skins/EduploneExam exam_singlechoice.pt,1.1,1.2 exam_truefalse.pt,1.1,1.2
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-serv24000/skins/EduploneExam
Modified Files:
exam_singlechoice.pt exam_truefalse.pt
Log Message:
user-interfaces for (allmost) every question - fillgap still missing....
Index: exam_truefalse.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_truefalse.pt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** exam_truefalse.pt 16 Dec 2004 13:28:21 -0000 1.1
--- exam_truefalse.pt 17 Dec 2004 09:47:56 -0000 1.2
***************
*** 13,17 ****
<br/><br/>
! <table border="0">
<tr tal:repeat="answer python:currentQuestion.contentValues()">
--- 13,17 ----
<br/><br/>
! <table border="0" tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
<tr tal:repeat="answer python:currentQuestion.contentValues()">
***************
*** 23,27 ****
<input type="radio" value="1"
tal:attributes="name python:'##'.join((currentQuestion.UID(), answer.UID()));
! checked python:test(str('uAnswer')=='on',
'checked', None)"/>
<small i18n:translate="label_correct">correct</small>
--- 23,27 ----
<input type="radio" value="1"
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>
***************
*** 29,36 ****
<input type="radio" value="0"
tal:attributes="name python:'##'.join((currentQuestion.UID(), answer.UID()));
! checked python:test(str('uAnswer')=='off',
'checked', None)"/>
<small i18n:translate="label_incorrect">incorrect</small>
</td>
--- 29,37 ----
<input type="radio" value="0"
tal:attributes="name python:'##'.join((currentQuestion.UID(), answer.UID()));
! checked python:test(responseObj[answer.UID()]=='0',
'checked', None)"/>
<small i18n:translate="label_incorrect">incorrect</small>
+
</td>
Index: exam_singlechoice.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_singlechoice.pt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** exam_singlechoice.pt 16 Dec 2004 13:28:21 -0000 1.1
--- exam_singlechoice.pt 17 Dec 2004 09:47:56 -0000 1.2
***************
*** 13,17 ****
<br/><br/>
! <table border="0">
<tr tal:repeat="answer python:currentQuestion.contentValues()">
--- 13,18 ----
<br/><br/>
! <table border="0"
! tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
<tr tal:repeat="answer python:currentQuestion.contentValues()">
***************
*** 21,25 ****
tal:attributes="name python: currentQuestion.UID();
value python: answer.UID();
! checked python:test(str('uAnswer')=='on','checked', None)" />
</td>
<td>
--- 22,26 ----
tal:attributes="name python: currentQuestion.UID();
value python: answer.UID();
! checked python:test(responseObj[answer.UID()], 'checked', None)" />
</td>
<td>
-------------------------------------------------------
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/