121 lines
4.1 KiB
XML
121 lines
4.1 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 Site</h3>
|
|
|
|
<div tal:define="message view/message | request/message | nothing"
|
|
tal:condition="message"
|
|
tal:content="message">Message</div>
|
|
|
|
<div> </div>
|
|
<div>
|
|
This form allows you to export the objects in a loops site 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_loops.html">
|
|
<input type="hidden" name="loops.action" value="export" />
|
|
<div> </div>
|
|
<h4>Export Site</h4>
|
|
<div> </div>
|
|
<div class="row">
|
|
<table>
|
|
<tr tal:condition="string:nothing">
|
|
<td>
|
|
<label for="changed">Export only objects changed since:<br />
|
|
(YYYY-MM-DD[ HH:MM[:SS]])</label></td>
|
|
<td colspan="2">
|
|
<input type="text" name="changed" id="changed" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<br />
|
|
<label for="nodes">Nodes (paths)</label><br />
|
|
<textarea name="nodes" id="nodes"
|
|
rows="5" cols="50" class="pretty"></textarea>
|
|
</td>
|
|
<td>
|
|
<br /><br />
|
|
<input type="checkbox" name="include_node_targets"
|
|
id="include_node_targets" />
|
|
<label for="include_node_targets">Include Node Targets</label>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<br />
|
|
<label for="parents">Parent concepts (names)</label><br />
|
|
<textarea name="parents" id="parents"
|
|
rows="8" class="pretty"></textarea>
|
|
</td>
|
|
<td>
|
|
<br />
|
|
<label for="predicates">Predicates</label><br />
|
|
<select multiple name="predicates:list" id="predicates"
|
|
size="11">
|
|
<option tal:repeat="pred view/predicates"
|
|
tal:attributes="value pred/name"
|
|
tal:content="pred/title">subobject</option></select>
|
|
</td>
|
|
<td>
|
|
<br /><br />
|
|
<input type="checkbox" name="include_subconcepts"
|
|
id="include_subconcepts" />
|
|
<label for="include_subconcepts">Include Assigned Subconcepts</label>
|
|
<br />
|
|
<input type="checkbox" name="include_resources"
|
|
id="include_resources" />
|
|
<label for="include_resources">Include Assigned Resources</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3">
|
|
<label for="types">Restrict Type</label><br />
|
|
<select multiple name="types:list" id="types"
|
|
size="4">
|
|
<option tal:repeat="type view/types"
|
|
tal:attributes="value type/name"
|
|
tal:content="type/title">type</option></select>
|
|
</tr>
|
|
</table>
|
|
</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> </div>
|
|
<h4>Import Site</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>
|