EduploneTest/skins/EduploneTest paperprint_view.pt,NONE,1.1 test_environment_listing.pt,1.9,1.10

Nils Haagen <[email protected]> Wed, 26 Jan 2005 23:15:35 +0000
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-serv19544/skins/EduploneTest

Modified Files:
	test_environment_listing.pt 
Added Files:
	paperprint_view.pt 
Log Message:
added paper-view template (all questions on one printable page), everything but fillgap

Index: test_environment_listing.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/skins/EduploneTest/test_environment_listing.pt,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_environment_listing.pt	16 Nov 2004 01:12:57 -0000	1.9
--- test_environment_listing.pt	26 Jan 2005 23:15:32 -0000	1.10
***************
*** 37,41 ****
                      <div tal:condition="python: currentUserState == 1" i18n:translate="text_not_approved">
                      You have applied for doing the test as a participant. Before you are allowed to do
!                      it, the teacher has to list you in the list of participants.
                      </div>
                      <div tal:condition="python: currentUserState == 2">
--- 37,41 ----
                      <div tal:condition="python: currentUserState == 1" i18n:translate="text_not_approved">
                      You have applied for doing the test as a participant. Before you are allowed to do
!                      it, the teacher has to list you as participant.
                      </div>
                      <div tal:condition="python: currentUserState == 2">
***************
*** 54,60 ****
  				<br /><br />
  				
! 				<a tal:attributes="href python: here.fixedObjectValues()[0].absolute_url() + '/task_view'"
! 				   i18n:translate="text_click_here">Click here to start.</a>
! 				<br />
  				<a tal:attributes="href python:'#';
  						   onClick python:'javascript:startTest(\'' + here.fixedObjectValues()[0].absolute_url() + '/task_view\')'" 
--- 54,64 ----
  				<br /><br />
  				
! 				<FIELDSET> <br />
!                     <b>
!                     <a tal:attributes="href python: here.fixedObjectValues()[0].absolute_url() + '/task_view'"
!                        i18n:translate="text_click_here">Click here to start.</a>
!                     </b>
!                     <br />
!                 </fieldset>
  				<a tal:attributes="href python:'#';
  						   onClick python:'javascript:startTest(\'' + here.fixedObjectValues()[0].absolute_url() + '/task_view\')'" 
***************
*** 97,111 ****
  			
  			<div tal:condition="python: not isAnon">
  
!                     	    <span i18n:translate="text_you_can_list_yourself">You can list yourself </span>
! 			    <a tal:attributes="href python:here.absolute_url() + '/applyForTest'" 
! 			       i18n:translate="text_here_text">here</a>
! 			    
! 			    <span i18n:translate="text_as_participiant"> as a participiant in the test </span>
  
  			</div>
  			
  						          
!                     <br /><bR />
                      
  		    
--- 101,117 ----
  			
  			<div tal:condition="python: not isAnon">
+                 <fieldset>
+                     <br />
  
!                     <b><a i18n:translate="text_you_can_list_yourself"
!                           tal:attributes="href python:here.absolute_url() + '/applyForTest'">Sign up here to participate</a>
!                     </b>
!                     <br />
  
+                 </fieldset>
  			</div>
  			
  						          
!                  <br /><bR />
                      
  		    

--- NEW FILE: paperprint_view.pt ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
      lang="en-US"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="eduplone">
  <body>
    <div metal:fill-slot="main">
<!--==================================================================-->
    <table tal:define="qTypes python:['eduplone MultiChoice','eduplone SingleChoice','eduplone TrueFalse','eduplone TextTask','eduplone FreeText', 'eduplone FillGap', 'eduplone Matching']">

        <tr tal:repeat="q python:here.objectValues(qTypes)">

        <td  tal:define="qItems python:q.objectValues();
                         qType  python:q.meta_type">

        <table>
          <tr>

            <td valign=top align=right>
                <bR /> <!-- why is that?-->
                <a tal:content="python: here.sequence_getPosition(q.getId())" />
            </td>

            <td>&nbsp;</td>

            <td valign=top>
                <p><b tal:content="structure python: q.getQuestion()" />
                <span tal:condition="python: here.getShowpoints()">
                    (<span tal:content="python:q.getScore()"/> Punkte)
                </span>
                </p>
                
                <span tal:content="structure python: q.getInstruction()" />
                
            </td>
         </tr>

         <tr>
            <td></td>
            <td></td>

            <td>
            <!-- ===================================== -->
                <tal:condition condition="python:qType=='eduplone Matching'">
                
                    <span>Bitte w&auml;hlen Sie aus folgenden M&ouml;glichkeiten (Mehrfachnennungen m&ouml;glich):

                      <bR /><br />

                      -- 
                      <span tal:repeat="aItem python:q.matchingAnswers()">
                         <b tal:content="aItem" /> --
                      </span>

                      <bR /><br />

                    </span>

                    <table border="0">
                        <tal:repeat repeat="qItem qItems">
    
                            <tr tal:condition="python:qItem.getChallenge()">
                                <td colspan="2" tal:content="python: qItem.getChallenge()" />
                            </tr>
                            <tr><td colspan=2><br /></td></tr>
                            <tr>
                                <tD width="45"></td>
                                <td>_______________________________________________________________________________________________</td>
                            </tr>
                            <tr><td colspan=2><br /><br></td></tr>

                        </tal:repeat>
                    </table>
                </tal:condition>

            <!-- ===================================== -->

                <tal:condition condition="python:qType in ['eduplone MultiChoice','eduplone SingleChoice','eduplone TrueFalse']">
                                    
                    <table border="0">
                        <tal:repeat repeat="qItem qItems">

                          <span tal:condition="python:qType=='eduplone TrueFalse'">
                            <tr>
                                <td valign=top tal:content="python: qItem.getAnswer()" />
                                <td>&nbsp;</td>
                                <td><form>
                                    <nobr><input name="a" type=radio />wahr</nobr>
                                    <bR>
                                    <nobr><input name="a" type=radio />falsch</nobr>
                                    </form>
                                </td>
                            </tr>
                            <tr><td colspan=3><br /></td></tR>
                          </span>


                          <span tal:condition="python:qType == 'eduplone MultiChoice'">
                            <tr>
                                <td><form>
                                        <input type=checkbox />
                                    </form>
                                </td>
                                <td>&nbsp;</td>
                                <td valign=top tal:content="python: qItem.getAnswer()" />
                            </tr>
                            <tr><td colspan=3><br /></td></tR>
                          </span>


                          <span tal:condition="python:qType == 'eduplone SingleChoice'">
                            <tr>
                                <td><form>
                                        <input type=radio />
                                    </form>
                                </td>
                                <td>&nbsp;</td>
                                <td valign=top tal:content="python: qItem.getAnswer()" />
                            </tr>
                            <tr><td colspan=3><br /></td></tR>
                          </span>


                        </tal:repeat>
                     </table>
                </tal:condition>

            <!-- ===================================== -->

                <tal:condition condition="python:qType in ['eduplone TextTask', 'eduplone FreeText']">

                    <table border="0">
                       
                            <tr>
                                <tD width="45"></td>
                                <td>
                                    <br>_______________________________________________________________________________________________
                                  <span tal:condition="python: qType=='eduplone FreeText'">
                                    <br><br>_______________________________________________________________________________________________
                                    <br><br>_______________________________________________________________________________________________
                                    <br><br>_______________________________________________________________________________________________
                                    <br><br>_______________________________________________________________________________________________
                                    <br><br>_______________________________________________________________________________________________
                                    <br><br>_______________________________________________________________________________________________
                                    <br><br>_______________________________________________________________________________________________
                                    <br><br>_______________________________________________________________________________________________
                                  </span>
                                </td>
                            </tr>
                            
                    </table>
                </tal:condition>

            <!-- ===================================== -->



            </td>
        </tr>
      </table>

      </td>
      </tr>
      </table>
<!--==================================================================-->
    </div>
  </body>
</html>



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl