EduploneExam/skins/EduploneExam exam_fillgap_edit.cpt,1.2,1.3
"Fabian K." <[email protected]> Thu, 31 Mar 2005 16:29:48 +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-serv19035/skins/EduploneExam
Modified Files:
exam_fillgap_edit.cpt
Log Message:
Added save / cancel buttons in archetypes-style.
Index: exam_fillgap_edit.cpt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_fillgap_edit.cpt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** exam_fillgap_edit.cpt 31 Mar 2005 12:23:38 -0000 1.2
--- exam_fillgap_edit.cpt 31 Mar 2005 16:29:45 -0000 1.3
***************
*** 84,88 ****
<script metal:fill-slot="javascript_head_slot" language="javascript">
! function highlightGap(nr){
oldNr = document.forms['gapEditForm'].gapWordIndex.value;
if(oldNr) {
--- 84,88 ----
<script metal:fill-slot="javascript_head_slot" language="javascript">
! function highlightGap(nr, word){
oldNr = document.forms['gapEditForm'].gapWordIndex.value;
if(oldNr) {
***************
*** 91,94 ****
--- 91,96 ----
document.forms['gapEditForm'].gapWordIndex.value = nr;
+ document.forms['gapEditForm'].title.value = word;
+ document.forms['gapEditForm'].correct.value = word;
gL = document.getElementById('gapLink_' + nr);
gL.style.backgroundColor = '#ee9900';
***************
*** 103,107 ****
<fieldset tal:define="BaseTextList python: here.aq_parent.getBasetext().split(' ')">
! <legend>BaseText</legend>
<tal:block tal:repeat="word BaseTextList">
--- 105,109 ----
<fieldset tal:define="BaseTextList python: here.aq_parent.getBasetext().split(' ')">
! <legend>Base text</legend>
<tal:block tal:repeat="word BaseTextList">
***************
*** 122,131 ****
<a tal:condition="python:isGap==False"
! tal:attributes="href python:'javascript:highlightGap(%i)' % (repeat['word'].index);
id python:'gapLink_%s' % (str(repeat['word'].index));"
tal:content="word" />
-
-
</tal:def>
</tal:block>
--- 124,131 ----
<a tal:condition="python:isGap==False"
! tal:attributes="href python:'javascript:highlightGap(%i, \'%s\')' % (repeat['word'].index, word);
id python:'gapLink_%s' % (str(repeat['word'].index));"
tal:content="word" />
</tal:def>
</tal:block>
***************
*** 138,142 ****
<form name="gapEditForm">
! new:<input type="text" name="gapWordIndex" tal:attributes="value python:here.getGapPosition(here.getId())"/>
<metal:block define-slot="widgets">
--- 138,142 ----
<form name="gapEditForm">
! <input type="hidden" name="gapWordIndex" tal:attributes="value python:here.getGapPosition(here.getId())"/>
<metal:block define-slot="widgets">
***************
*** 145,148 ****
--- 145,152 ----
</tal:fields>
</metal:block>
+ <input class="context" type="submit"
+ name="form_submit" value="Save" />
+ <input class="standalone" type="submit"
+ name="form.button.cancel" value="Cancel" />
</form>
-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30