bulk_action_listing.smarty
2.49 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{$context->getDisplayName()}</h2>
{if count($failed.folders) || (count($failed.documents))}
<p class="descriptiveText">{i18n}The following list shows documents and folders in your list which cannot be acted on by this bulk action{/i18n}:</p>
{if count($failed.folders)}
<table class="kt_collection">
<thead>
<tr>
<th colspan="2">{i18n}Folders{/i18n}</th>
</tr>
<tr>
<th width="20%">{i18n}Name{/i18n}</th>
<th>{i18n}Reason for failure{/i18n}</th>
</tr>
</thead>
<tbody>
{foreach from=$failed.folders item=item}
<tr class="{cycle values=even,odd}">
<td>{$item.0|sanitize}</td>
<td>{$item.1|sanitize}</td>
</tr>
{/foreach}
</tbody>
</table>
<br/>
{/if}
{if (count($failed.documents))}
<table class="kt_collection">
<thead>
<tr>
<th colspan="2">{i18n}Documents{/i18n}</th>
</tr>
<tr>
<th width="20%">{i18n}Name{/i18n}</th>
<th>{i18n}Reason for failure{/i18n}</th>
</tr>
</thead>
<tbody>
{foreach from=$failed.documents item=item}
<tr class="{cycle values=even,odd}">
<td>{$item.0|sanitize}</td>
<td>{$item.1|sanitize}</td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
{/if}
{if (count($documents) || count($folders))}
<p class="descriptiveText">{i18n}The action will be performed on the following documents and folders{/i18n}:</p>
{if (count($folders))}
<h3>{i18n}Folders{/i18n}</h3>
<ul>
{foreach from=$folders item=folder}
<li>{$folder.name|sanitize}
{if $folder.notice}
<b>({$folder.notice})</b>
{/if}
</li>
{/foreach}
</ul>
{/if}
{if count($documents)}
<h3>{i18n}Documents{/i18n}</h3>
<ul>
{foreach from=$documents item=document}
<li>{$document.name|sanitize}
{if $document.notice}
<b>({$document.notice})</b>
{/if}
</li>
{/foreach}
</ul>
{/if}
{/if}
{if (!count($failed.folders) && !count($failed.documents))}
<p>{i18n}The action can be performed on the entire selection.{/i18n}</p>
{/if}
{if (!$activecount)}
<p>{i18n}The action cannot be performed on any of the selected entities.{/i18n}</p>
{$failedform->render()}
{else}
{$form->render()}
{/if}