EduploneExam/skins/EduploneExam exam_fillgap_edit.cpt,1.3,1.4
"Fabian K." <[email protected]> Sat, 02 Apr 2005 11:49:34 +0000
| 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-serv1462/skins/EduploneExam
Modified Files:
exam_fillgap_edit.cpt
Log Message:
Added move gap feature for fillgap question types
Index: exam_fillgap_edit.cpt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_fillgap_edit.cpt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** exam_fillgap_edit.cpt 31 Mar 2005 16:29:45 -0000 1.3
--- exam_fillgap_edit.cpt 2 Apr 2005 11:49:31 -0000 1.4
***************
*** 1,3 ****
! <tal:block metal:define-macro="master"
define="errors options/state/getErrors | nothing;
Iterator python:modules['Products.Archetypes'].IndexIterator;
--- 1,3 ----
! รครค<tal:block metal:define-macro="master"
define="errors options/state/getErrors | nothing;
Iterator python:modules['Products.Archetypes'].IndexIterator;
***************
*** 104,108 ****
<metal:use_typedescription use-macro="typedescription_macro" />
! <fieldset tal:define="BaseTextList python: here.aq_parent.getBasetext().split(' ')">
<legend>Base text</legend>
--- 104,108 ----
<metal:use_typedescription use-macro="typedescription_macro" />
! <fieldset tal:define="BaseTextList python: here.aq_parent.getBasetextAsList()">
<legend>Base text</legend>
***************
*** 112,122 ****
<a tal:condition="isCurrent"
! tal:attributes="href python:'javascript:highlightGap(%i)' % (repeat['word'].index);
class string:exam_fg_highlighted;
id python:'gapLink_%s' % (str(repeat['word'].index));"
! tal:content="python: here.Title()" />
<a tal:condition="python:isGap and not isCurrent"
! tal:attributes="href python:''.join([here.aq_parent[word[5:-2]].absolute_url() , '/exam_fillgap_edit']);
class string:exam_fg_isGap;
id python:'gapLink_%s' % (str(repeat['word'].index));"
--- 112,122 ----
<a tal:condition="isCurrent"
! tal:attributes="href python:'javascript:highlightGap(%i, \'%s\')' % (repeat['word'].index, here.getCorrect()[0]);
class string:exam_fg_highlighted;
id python:'gapLink_%s' % (str(repeat['word'].index));"
! tal:content="python: here.getCorrect()[0]" />
<a tal:condition="python:isGap and not isCurrent"
! tal:attributes="href python:''.join([here.aq_parent[word[5:-2]].absolute_url() , '/exam_fillgap_edit']);
class string:exam_fg_isGap;
id python:'gapLink_%s' % (str(repeat['word'].index));"
***************
*** 136,142 ****
! <form name="gapEditForm">
! <input type="hidden" name="gapWordIndex" tal:attributes="value python:here.getGapPosition(here.getId())"/>
<metal:block define-slot="widgets">
--- 136,142 ----
! <form name="gapEditForm" action="exam_fillgap_process" method="POST">
! <input type="hidden" name="gapWordIndex" tal:attributes="value python:here.getGapPosition(here.getId())" />
<metal:block define-slot="widgets">
-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click