[Zapp-cvs-commit] ZApp/zpt CMF_displayRelatedObjects.zpt,NONE,1.1 addRelationship_ChooseObjectManage
Brought to you by:
sspickle
|
From: Steve S. <ssp...@us...> - 2004-03-19 16:03:23
|
Update of /cvsroot/zapp/ZApp/zpt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30660/zpt Modified Files: addRelationship_ChooseObjectManager_ui.zpt findNewRelationship_ui.zpt Added Files: CMF_displayRelatedObjects.zpt Log Message: add relationship management views to CMF display Index: addRelationship_ChooseObjectManager_ui.zpt =================================================================== RCS file: /cvsroot/zapp/ZApp/zpt/addRelationship_ChooseObjectManager_ui.zpt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** addRelationship_ChooseObjectManager_ui.zpt 8 Oct 2003 20:36:28 -0000 1.1 --- addRelationship_ChooseObjectManager_ui.zpt 19 Mar 2004 15:53:32 -0000 1.2 *************** *** 4,7 **** --- 4,8 ---- tal:define="managerIDs here/findSpecialistsForRelationship"> + <input type="hidden" name="responseURL" value="" tal:attributes="value request/responseURL | default"> <table tal:condition="managerIDs"> <tr><td>Manager</td><td><select name="objectManager"><option value=""></option> Index: findNewRelationship_ui.zpt =================================================================== RCS file: /cvsroot/zapp/ZApp/zpt/findNewRelationship_ui.zpt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** findNewRelationship_ui.zpt 16 Dec 2003 17:19:44 -0000 1.3 --- findNewRelationship_ui.zpt 19 Mar 2004 15:53:33 -0000 1.4 *************** *** 9,13 **** dummy python:request.set('formParams',{'action':'createAndAddObject_ui', 'submit':'Create Relationship', 'method':'post', 'hiddenFormItems':[{'name':'objectManager', 'value':objectManager}, ! {'name':'createIfNone:int', 'value':'1'}], 'formItems':[{'name':'objectRole', 'value':'', 'label':'Object Role'},]});"> --- 9,15 ---- dummy python:request.set('formParams',{'action':'createAndAddObject_ui', 'submit':'Create Relationship', 'method':'post', 'hiddenFormItems':[{'name':'objectManager', 'value':objectManager}, ! {'name':'createIfNone:int', 'value':'1'}, ! {'name':'responseURL', 'value':request.get('responseURL','')}, ! ], 'formItems':[{'name':'objectRole', 'value':'', 'label':'Object Role'},]});"> --- NEW FILE: CMF_displayRelatedObjects.zpt --- <div tal:define="app python:here.findApplication(); appURL app/absolute_url; portal python:getattr(app, app.zapp_portal_id, ''); objRelations python:here.objectRelations( returnObjects=1 ); managerIDs here/findSpecialistsForRelationship"> <span tal:condition="portal"> <tal:block tal:omit-tag="" tal:define="relURL python:here.calcPathID().replace(',','/')[1:]"> <a tal:attributes="href string:${portal/absolute_url}/${relURL}">Portal View</a> </tal:block></span> <form action="" tal:attributes="action request/URL1" method="post"> <table > <tr tal:condition="objRelations"><td> </td><td>Manager</td><td>ObjectID</td><td>Info</td><td>Context ID</td></tr> <tr tal:condition="objRelations" tal:repeat="objRelation objRelations"> <span tal:omit-tag="" tal:define="otherObject python:objRelation.get('otherObject',None)"> <input type="hidden" name="relationInfo.otherRIID:records" tal:attributes="value objRelation/otherRIID"> <td><input name="ids:list" type=checkbox value="" tal:attributes="value objRelation/otherRIID"/></td> <td tal:content="objRelation/otherManagerID"/> <td><a tal:content="objRelation/otherObjectID" tal:attributes="href string:${objRelation/otherObject/absolute_url}/displayUpdateForm_html"/></td> <td tal:content="otherObject/Info | otherObject/name | otherObject/description | otherObject/objectType | nothing"/> <td><input name="relationInfo.contextID:records" tal:attributes="value objRelation/otherContextID"/></td> </span> </tr> <tr tal:condition="objRelations"><td colspan="3"> <input type="submit" value="Delete Relation" name="removeObjectRelations_ui:method"> <input tal:condition="objRelations" type="submit" value="Edit Selected Relations" name="editRelations_ui:method"> </td></tr> <tr tal:condition="managerIDs"><td colspan="3"><input type="submit" value="Relate Other Object" name="addRelationship_pt:method"> </td></tr> </table> </form> </div> |