1 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
3 metal:use-macro="here/main_template/macros/master"
4 i18n:domain="cmf_default">
7 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
11 <div metal:fill-slot="main_no_tabs"
12 tal:define="transactions python:container.portal_undo.listUndoableTransactionsFor(here);
13 Batch python:modules['Products.Plinn'].Batch;
14 DateTime python:modules['DateTime'].DateTime;
15 b_start python:request.get('b_start',0)">
17 <form name="undo_form"
20 tal:condition="transactions"
21 tal:define="batch python:Batch(transactions, 15, int(b_start), orphan=1)">
23 <input type="hidden" name="came_from" value="" tal:attributes="value request/HTTP_REFERER" />
25 <h1 i18n:translate="">Undo Transactions</h1>
28 This application's transactional feature allows you to
29 easily undo changes made to the application's settings or data. You can
30 revert the application to a "snapshot" of its state
31 at a previous point in time.
35 Select one or more transactions below and then click on the "Undo"
36 button to undo the transactions. Note that even though a transaction
37 is shown below, you will not be able to undo it if later transactions
38 modified objects that were modified by the transaction.
42 <div metal:use-macro="here/batch_macros/macros/navigation" />
44 <table class="listing"
45 summary="Undo history"
51 <th i18n:translate="">Undo</th>
52 <th i18n:translate="">Action performed</th>
53 <th i18n:translate="">Affected Item</th>
54 <th i18n:translate="">By</th>
55 <th i18n:translate="">Date</th>
60 <metal:block tal:repeat="trx batch">
62 tal:define="oddrow repeat/trx/odd;
63 descriptions python:trx.get('description').split('\n');"
64 tal:attributes="class python:test(oddrow, 'even', 'odd')" >
67 <input type="checkbox"
69 name="transaction_info:list" value=""
71 tal:attributes="value python:trx['id'];
72 tabindex tabindex/next;" />
75 <td tal:define="has_description python:len(descriptions)>1">
77 <span tal:condition="has_description"
78 tal:replace="python:' '.join(descriptions[1:])">Title</span>
79 <span tal:condition="not:has_description"> </span>
83 <td tal:content="python:descriptions[0]">
87 <td tal:content="python:mtool.getMemberFullNameById(trx['user_name'].split(' ', 1)[1], nameBefore=0)">
91 <td tal:content="python:trx['time'].strftime(locale_date_fmt)">
99 <input class="context"
104 i18n:attributes="value"
105 tal:attributes="tabindex tabindex/next;"
109 <div metal:use-macro="here/batch_macros/macros/navigation" />