-
-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathrecyclebin.pt
More file actions
68 lines (61 loc) · 3.35 KB
/
Copy pathrecyclebin.pt
File metadata and controls
68 lines (61 loc) · 3.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
metal:use-macro="context/main_template/macros/master"
i18n:domain="plone">
<body>
<metal:main fill-slot="main">
<h1 class="documentFirstHeading" i18n:translate="">Recycle Bin</h1>
<div class="documentDescription" i18n:translate="">
Items deleted from this site are stored here and can be restored or permanently deleted.
</div>
<form method="post" tal:attributes="action string:${context/absolute_url}/@@recyclebin"
tal:define="items view/get_items">
<input type="hidden" name="form.submitted" value="1" />
<div class="pat-autotoc autotabs">
<div id="all-items">
<table class="table table-striped listing">
<thead>
<tr>
<th><input type="checkbox" name="select_all" id="select_all" /></th>
<th i18n:translate="">Title</th>
<th i18n:translate="">Type</th>
<th i18n:translate="">Original Path</th>
<th i18n:translate="">Deletion Date</th>
<th i18n:translate="">Size</th>
</tr>
</thead>
<tbody>
<tr tal:condition="not:items">
<td colspan="6" i18n:translate="">No items in recycle bin</td>
</tr>
<tr tal:repeat="item items">
<td>
<input type="checkbox" name="selected_items:list"
tal:attributes="value item/recycle_id" />
</td>
<td>
<a tal:attributes="href string:${context/absolute_url}/@@recyclebin/item/${item/recycle_id}"
tal:content="item/title">Title</a>
</td>
<td tal:content="item/type">Content type</td>
<td tal:content="item/path">Original path</td>
<td tal:content="python:view.format_date(item['deletion_date'])">Deletion date</td>
<td tal:content="python:view.format_size(item.get('size', 0))">Size</td>
</tr>
</tbody>
</table>
<div class="formControls" tal:condition="items">
<input class="btn btn-primary" type="submit" name="form.button.Restore" value="Restore Selected" i18n:attributes="value" />
<input class="btn btn-danger" type="submit" name="form.button.Delete" value="Delete Selected" i18n:attributes="value" />
<input class="btn btn-danger" type="submit" name="form.button.Empty" value="Empty Recycle Bin"
onclick="return confirm('Are you sure you want to permanently delete all items in the recycle bin?');"
i18n:attributes="value" />
</div>
</div>
</div>
</form>
</metal:main>
</body>
</html>