EduploneExam/skins/EduploneExam exam_singlechoice.pt,NONE,1.1 exam_truefalse.pt,NONE,1.1

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-serv29746/skins/EduploneExam

Added Files:
	exam_singlechoice.pt exam_truefalse.pt 
Log Message:
added truefalse and singlechoice

--- NEW FILE: exam_truefalse.pt ---
 
<div metal:define-macro="view"
       tal:omit-tag="">

    <div>
                    
        <h2 tal:content="currentQuestion/title" />
        <bR>
        <b tal:content="structure python:currentQuestion.getQuestion()" />
        <br/>
        <span tal:content="python: currentQuestion.getInstruction()" />
        
        <br/><br/>

        <table border="0">

        <tr tal:repeat="answer python:currentQuestion.contentValues()">


            <td><span tal:content="python: answer.getChallange()" /></td>
            <td width="10"></td>
            <td>
                <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>

                <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>


        </tr>
        </table>


    </div>

</div>
--- NEW FILE: exam_singlechoice.pt ---
 
<div metal:define-macro="view"
       tal:omit-tag="">

    <div>
                    
        <h2 tal:content="currentQuestion/title" />
        <bR>
        <b tal:content="structure python:currentQuestion.getQuestion()" />
        <br/>
        <span tal:content="python: currentQuestion.getInstruction()" />
        
        <br/><br/>

        <table border="0">

        <tr tal:repeat="answer python:currentQuestion.contentValues()">

                <td>
                <input type="radio" 
                       tal:attributes="name  python: currentQuestion.UID();
                                       value python: answer.UID();
                                       checked python:test(str('uAnswer')=='on','checked', None)" />
                </td>
                <td>
                    &nbsp; &nbsp; <span tal:content="python: answer.getChallange()" />
                </td>


        </tr>
        </table>


    </div>

</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.