1[% WRAPPER page/wrapper.tt title = loc('Delete', page.path) %]
2<div id="content">
3
4[% IF allowed_to_delete %]
5<h3>[% loc('Are you sure you want to delete') %] <em>[% page.name_orig %]?</em></h3>
6<div>[% loc('The following pages will be deleted. This can not be undone') %].</div>
7[% ELSE %]
8<h3>[% loc('Sorry') %]</h3>
9<div>[% loc('You lack permissions to delete this page (or any of the sub pages).') %]</div>
10[% END %]
11
12<ul>
13[% FOREACH descendant IN descendants %]
14    <li>[% descendant.name %] <span style="color: [% descendant.can_delete ? 'green' : 'red' %]">[% descendant.can_delete ? '&#10004;' : '&#10006' %]</span>
15    </li>
16[% END %]
17</ul>
18
19[% IF allowed_to_delete %]
20<form action="[% c.uri_for('delete') %]" method="post">
21    <input type="submit" name="confirm" value="[% loc('Yes') %]" />
22</form>
23[% END %]
24
25</div>
26[% END # WRAPPER %]
27