File: delete.tt

package info (click to toggle)
libmojomojo-perl 1.01%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,272 kB
  • ctags: 879
  • sloc: perl: 14,055; sh: 145; xml: 120; ruby: 6; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 848 bytes parent folder | download | duplicates (5)
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
[% WRAPPER page/wrapper.tt title = loc('Delete', page.path) %]
<div id="content">

[% IF allowed_to_delete %]
<h3>[% loc('Are you sure you want to delete') %] <em>[% page.name_orig %]?</em></h3>
<div>[% loc('The following pages will be deleted. This can not be undone') %].</div>
[% ELSE %]
<h3>[% loc('Sorry') %]</h3>
<div>[% loc('You lack permissions to delete this page (or any of the sub pages).') %]</div>
[% END %]

<ul>
[% FOREACH descendant IN descendants %]
    <li>[% descendant.name %] <span style="color: [% descendant.can_delete ? 'green' : 'red' %]">[% descendant.can_delete ? '&#10004;' : '&#10006' %]</span>
    </li>
[% END %]
</ul>

[% IF allowed_to_delete %]
<form action="[% c.uri_for('delete') %]" method="post">
    <input type="submit" name="confirm" value="[% loc('Yes') %]" />
</form>
[% END %]

</div>
[% END # WRAPPER %]