loops/browser/exportimport.pt
helmutm 62c5514219 export/import of nodes basically OK
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1010 fd906abe-77d9-0310-91a1-e0d9ade77398
2006-01-17 06:50:12 +00:00

60 lines
1.7 KiB
XML

<tal:show condition="not:view/submit">
<html metal:use-macro="context/@@standard_macros/view">
<head>
</head>
<body>
<metal:body fill-slot="body">
<h3>Export/Import loops View Nodes</h3>
<div tal:define="message view/message | request/message | nothing"
tal:condition="message"
tal:content="message">Message</div>
<div>&nbsp;</div>
<div>
This form allows you to export nodes to a
file and upload a file created by a content export.
</div>
<form action="." method="post"
tal:attributes="action string:${request/URL/-1}/export_nodes.html">
<input type="hidden" name="loops.action" value="export" />
<div>&nbsp;</div>
<h4>Export Nodes</h4>
<div>&nbsp;</div>
<div class="row">
<div class="controls">
<input type="submit" name="loops.export" value="Export" />
</div>
</div>
</form>
<form action="." method="post" enctype="multipart/form-data"
tal:attributes="action request/URL">
<input type="hidden" name="loops.action" value="upload" />
<div>&nbsp;</div>
<h4>Import Nodes</h4>
<div class="row">
<div class="label">
<label for="field.data"
title="The file to be uploaded.">File</label>
</div>
<div class="field">
<input class="fileType" id="field.data" name="field.data"
size="20" type="file" />
</div>
</div>
<div class="row">
<div class="controls">
<input type="submit" name="loops.upload" value="Upload" />
</div>
</div>
</form>
</metal:body>
</body>
</html>
</tal:show>