[CMF-checkins] CVS: Products/CMFDecor/skins/zpt_generic - undo_form.pt:1.1
Andrew Sawyers
andrew@digicool.com
Thu, 13 Sep 2001 15:59:02 -0400
Update of /cvs-repository/Products/CMFDecor/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv24332
Added Files:
undo_form.pt
Log Message:
*undo_form was missed on the first pass at conversion....here it is.
=== Added File Products/CMFDecor/skins/zpt_generic/undo_form.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">
<div class="Desktop">
<h1> Undo Transactions </h1>
<div tal:define="transactions python: here.portal_undo.listUndoableTransactionsFor(here)">
<div tal:condition="transactions">
<FORM ACTION="undo" METHOD="POST">
<p>This application's transactional feature allows you to easily undo changes
made to the application's settings or data. You can revert the application
to a "snapshot" of it's state at a previous point in time. </p>
<P>Select one or more transactions below and then click on the "Undo"
button to undo the transactions. Note that even though a transaction
is shown below, you will not be able to undo it if later transactions
modified objects that were modified by the transaction. </p>
<table class="FormLayout">
<tr><td colspan=2 align=center><INPUT TYPE="SUBMIT" VALUE=" Undo ">
</td></tr>
<tr><td></td></tr>
<tbody tal:condition="request/first_transaction">
<tr><td colspan=2 align=center>
<a href=""
tal:attributes="href python:here.portal_url() + '/undo_form?first_transaction:int=' +
str(request.first_transaction*2-request.last_transaction) +
'&last_transaction:int=' +
str(request.first_transaction) +
'&PrincipiaUndoBatchSize:int=' +
str(request.PrincipiaUndoBatchSize)">Later Transactions</a>
</td></tr>
</tbody>
<tbody tal:repeat="items transactions">
<tr>
<td valign=top><input type=checkbox name="transaction_info:list"
value=""
tal:attributes="value items/id">
</td>
<td valign=top>
<strong><span tal:replace="items/description" /></strong> by <strong>
<span tal:condition="items/user_name|nothing">
<span tal:replace="items/user_name" />
</span>
<span condition="python:not(items.description)">
<em>Zope</em>
</span>
</strong> on <span tal:replace="python: items['time'].Month()" /> <span tal:replace="python: items['time'].day()" /> at
<span tal:replace="python: items['time'].Time()" />
</td>
</tr>
</tbody>
<tr><td colspan=2 align=center>
<span tal:condition="python: len(transactions) == request.PrincipiaUndoBatchSize">
<a href=""
tal:attributes="href python: here.absolute_url() + '/undo_form?first_transaction:int=' + str(request.last_transaction) + '&last_transaction:int=' + str(request.last_transaction+request.PrincipiaUndoBatchSize) + '&PrincipiaUndoBatchSize:int=' + str(request.PrincipiaUndoBatchSize)">Earlier Transactions</a>
</span>
</td></tr>
<tr><td></td></tr>
<tr><td colspan=2 align=center><INPUT TYPE="SUBMIT" VALUE=" Undo ">
</td></tr>
</table>
</FORM>
</div>
<div tal:condition="python: not(transactions)">
There are no transactions that can be undone.
</div>
</div>
</div>
</div>
</body>
</html>