EduploneWebdidactics/skins/EduploneWebdidactics relations_edit.cpt,1.1,1.2 relations_edit.cpt.metadata,1.1,1.2

Claudia Disque <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneWebdidactics/skins/EduploneWebdidactics
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16023/skins/EduploneWebdidactics

Modified Files:
	relations_edit.cpt relations_edit.cpt.metadata 
Log Message:
interface; deleting of references

Index: relations_edit.cpt
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/skins/EduploneWebdidactics/relations_edit.cpt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** relations_edit.cpt	2 Nov 2004 10:02:30 -0000	1.1
--- relations_edit.cpt	2 Nov 2004 22:17:45 -0000	1.2
***************
*** 24,63 ****
        Use references to describe relations between objects. Valid references are described in the ReferenceRegistry as "Jigs".
        </p>
-       
-       <form id="referencesform"
-             action="relations_save"
-             method="post"
-             tal:define="errors options/state/getErrors;
- 			relJig python: modules['Products.CMFCore.utils'].getToolByName(here, 'relations_jigregistry')">
-             
-             
-         <input type="hidden" name="form.submitted" value="1" />
-         
- 	<h2 tal:content="python: relJig" />
- 
- 	<bR>
- 	<b tal:content="python: here.reference_catalog.getReferences(here)" />
- 	
- 	<bR><bR>
- 	
- 	sID:
- 	<input type=text name="sUid" tal:attributes="value python:here.UID()">
- 	
- 	<br>
- 	tID:
- 	<input type=text name="tUid">
- 	
- 	<bR>
- 	<select name="jigId">
- 	    <option tal:repeat="JigItem python: relJig.objectIds()"
- 		    tal:attributes="value JigItem;"
- 		    tal:content="JigItem" />
- 	</select>
- 	
- 
- 
  <!--
! 	<tal:block repeat="mdsetname python:binding.getSetNames()">
! 	
            <fieldset tal:define="mdset python:binding.getSet(mdsetname)">
              <legend tal:content="mdset/title_or_id" />
--- 24,30 ----
        Use references to describe relations between objects. Valid references are described in the ReferenceRegistry as "Jigs".
        </p>
  <!--
!     <tal:block repeat="mdsetname python:binding.getSetNames()">
! 
            <fieldset tal:define="mdset python:binding.getSet(mdsetname)">
              <legend tal:content="mdset/title_or_id" />
***************
*** 105,113 ****
  
  
          <div class="formControls">
!           <input class="context"
                   tabindex=""
                   type="submit"
!                  name="submit"
                   value="Save"
                   i18n:attributes="value"
--- 72,135 ----
  
  
+       <form id="referencesform"
+             action=""
+             method="post"
+             tal:define="errors options/state/getErrors;
+             relJig python: modules['Products.CMFCore.utils'].getToolByName(here, 'relations_jigregistry')">
+ 
+ 
+         <input type="hidden" name="form.submitted" value="1" />
+ 
+         sID:
+         <input type=text name="sUid" tal:attributes="value python:here.UID()">
+ 
+         <br>
+         tID:
+         <input type=text name="tUid">
+ 
+         <bR>
+         <select name="jigId">
+             <option tal:repeat="JigItem python: relJig.objectIds()"
+                 tal:attributes="value JigItem;"
+                 tal:content="JigItem" />
+         </select>
+ 
+ <bR><bR><bR>
+ 
+        <table border="1">
+            <tr tal:repeat="ref python: here.reference_catalog.getReferences(here)">
+ 
+            <td tal:define="sUID python: ref.getSourceObject().UID();
+                            tUID python: ref.getTargetObject().UID();
+                            jigID python: ref.relationship">
+                
+             <input tal:attributes="type python:'checkbox';
+                    name python:'ids:list';
+                    value python:','.join([sUID,tUID,jigID])"></td>
+ 
+            <td tal:content="python: ref.relationship" />
+            <td tal:content="python: ref.targetTitle()" />
+            <!--<td tal:content="python: ref[]"/>-->
+            <td tal:content="python: ref.getSourceObject().UID()"/>
+            <td tal:content="python: ref.getTargetObject().UID()"/>
+ 
+            </tr>
+ 
+        </table>
+     
+        <bR><bR>
+ 
          <div class="formControls">
!         <input class="context"
                   tabindex=""
                   type="submit"
!                  name="form.button.Delete"
!                  value="Delete"
!                  i18n:attributes="value"
!                  tal:attributes="tabindex tabindex/next;" />
!          <input class="context"
!                  tabindex=""
!                  type="submit"
!                  name="form.button.Save"
                   value="Save"
                   i18n:attributes="value"
***************
*** 115,118 ****
--- 137,144 ----
          </div>
        </form>
+ 
+ 
+ 
+ 
        <div metal:use-macro="here/document_byline/macros/byline">
          Get the byline - contains details about author and modification date.

Index: relations_edit.cpt.metadata
===================================================================
RCS file: /cvsroot/eduplone/EduploneWebdidactics/skins/EduploneWebdidactics/relations_edit.cpt.metadata,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** relations_edit.cpt.metadata	2 Nov 2004 10:02:30 -0000	1.1
--- relations_edit.cpt.metadata	2 Nov 2004 22:17:45 -0000	1.2
***************
*** 1,5 ****
  [validators]
! validators=cmfmetadata_validator
  
  [actions]
! action.success=traverse_to:string:relations_save
--- 1,7 ----
  [validators]
! validators..Save=
! validators..Delete=
  
  [actions]
! action.success..Save=traverse_to:string:relations_save
! action.success..Delete=traverse_to:string:relations_delete



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
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.