<html metal:use-macro="here/main_template/macros/page">
<head>
<title metal:fill-slot="title">Archive</title>
</head>
<body>
<div tal:omit-tag metal:fill-slot="nav_title">
<div tal:omit-tag metal:define-macro="navigation">
Archiving
<p><a class="map" href="processes">Show archiving processes</a></p>
</div>
</div>
<div metal:fill-slot="body">
<h2>First Step:Checking Metafiles</h2>
<span tal:define="global i python:0">
<table tal:define="check python:here.metachecker(here.REQUEST['path'])">
<tr tal:repeat="ret python:check.messages()">
<td tal:define="global i python:i+1">
<span tal:replace="python:ret.getError()[0]"/>
</td>
<td>
<td tal:condition="python:ret.getError()[1][1]=='ok'">
<img src="images/ok.gif">
<a href="errors" tal:attributes="href python:here.storeerror(ret,here.REQUEST.SESSION['path'],here,i)">(view result)</a>
</td>
<td tal:condition="python:ret.getError()[1][1]=='error'">
<img src="images/fail.gif">
<a href="errors" tal:attributes="href python:here.storeerror(ret,here.REQUEST['path'],here,i)">(view errors)</a>
</td>
</tr>
</table>
</span>
<h2>Second step: Archiving</h2>
<form tal:condition="python:here.isArray(here.REQUEST['path'])" action="archiver" method="post">
<input tal:repeat="path python:here.REQUEST['path']" type="hidden" name="path" tal:attributes="value path">
<input type="submit" value="Click here for archiving">
</form>
<form tal:condition="not:python:here.isArray(here.REQUEST['path'])" action="archiver" method="post">
<input type="hidden" name="path" tal:attributes="value python:here.REQUEST['path']">
<input type="submit" value="Click here for archiving">
</form>
<!--<p><a tal:attributes="href python:'archiver?path='+here.REQUEST['path']">Click here for archiving</a></p>-->
</div>
</body>
</html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>