EduploneWebdidactics/skins/EduploneWebdidactics relations_edit.cpt,NONE,1.1 relations_edit.cpt.metadata,NONE,1.1
Nils Haagen <[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-serv28547
Added Files:
relations_edit.cpt relations_edit.cpt.metadata
Log Message:
interface for Relations
--- NEW FILE: relations_edit.cpt ---
<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="cmfmetadata">
<head><title></title></head>
<metal:border fill-slot="head_slot">
<tal:border define="dummy python:request.set('enable_border',1)" />
</metal:border>
<body>
<div metal:fill-slot="main"
tal:define="errors options/state/getErrors;
mdtool here/portal_metadata;
binding python:mdtool.getMetadata(here) or None;"
>
<h1 i18n:translate="relations_editreferences">Edit References</h1>
<p i18n:translate="relations_description_edit_references">
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" />
<tal:block repeat="mdelement mdset/objectValues">
<div class="field"
tal:define="mdelement_key mdelement/getFieldKey;
mdelement_id mdelement/id;
error python:errors.get(mdelement_key, None) or errors.get(mdelement_id, None);"
tal:attributes="class python:test(error,
'field error', 'field')">
<label tal:content="mdelement/title_or_id"
i18n:translate="">Label</label>
<span tal:condition="mdelement/isRequired"
class="fieldRequired"
title="Required"
i18n:domain="plone"
i18n:attributes="title"
i18n:translate="label_required">(Required)</span>
<div class="formHelp"
tal:define="desc python:mdelement.Description()"
tal:condition="desc"
tal:content="structure desc"
i18n:translate="">Help</div>
<div tal:content="error">
Validation error output
</div>
<div tal:define="input python:mdelement.renderEdit(value=binding[mdsetname][mdelement_id], request=request)"
tal:replace="structure input"
tal:attributes="tabindex tabindex/next;">
</div>
</div>
</tal:block>
</fieldset>
</tal:block>
-->
<div class="formControls">
<input class="context"
tabindex=""
type="submit"
name="submit"
value="Save"
i18n:attributes="value"
tal:attributes="tabindex tabindex/next;" />
</div>
</form>
<div metal:use-macro="here/document_byline/macros/byline">
Get the byline - contains details about author and modification date.
</div>
</div>
</body>
</html>
--- NEW FILE: relations_edit.cpt.metadata ---
[validators]
validators=cmfmetadata_validator
[actions]
action.success=traverse_to:string:relations_save
-------------------------------------------------------
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