delete_app

NAML documentation   Watch a video
   Usages of this macro
... in delete_app.naml
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
<macro name="delete_app" requires="servlet">
    <n.node_page
Macro
Requires: servlet
Parameters: do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_delete_recursively
Macro
Requires: user
Parameters: node
.page_node>
            <then>
                <n.login
Macro
Requires: servlet
Parameters: message
.><t>Only authorized users can proceed in this area.</t></n.login.>
            </then>
        </n.if.not.visitor.can_delete_recursively.page_node>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
            <then>
                <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.delete_node_recursively_and_redirect
Macro
Requires: node
/>
            </then>
        </n.if.is_submitted_form>
        <n.html
Macro
Parameters: head, body
>
            <head>
                <META NAME="robots" CONTENT="noindex,nofollow"/>
                <n.title
Macro
Parameters: text
.><t>Delete Application</t> - <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/></n.title.>
            </head>
            <body>
                <n.edit_header
Macro
Parameters: first_text, second_text
 first_text="[t]Delete Application[/t]" second_text="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/]"/>
 
                <n.form
Macro
Requires: servlet
Parameters: macro, method, onsubmit, content
.>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.is_a_mailing_list_archive
Binary
Namespace: NodeNamespace
>
                        <then><n.mailing_list_unsubscription_notice
Macro
Requires: node_page
/></then>
                    </n.if.page_node.is_a_mailing_list_archive>
 
                    <div class="second-font field-title" style="margin-bottom:.6em">
                        <t>Do you really want to permanently <n.important
Macro
Parameters: text
.>delete</n.important.> <t.location><i><n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/></i></t.location>?</t>
                    </div>
                    <div class="weak-color" style="margin-bottom:1em">
                        <t><n.important
Macro
Parameters: text
.>CAUTION</n.important.>: Everything under <t.location.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/> will be deleted forever!</t>
                        <ul>
                            <li><t>This includes subcategories, posts, images, files and everything else.</t></li>
                            <li><t>It will NOT be possible to restore deleted items later.</t></li>
                        </ul>
                    </div>
 
                    <div style="margin-top:1.4em">
                        <input type="submit" class="toolbar action-button" value="[t]Yes, delete [t.location.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/] forever[/t]"/>
                        <t>or</t> <a href="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.path
Macro
Requires: node
Parameters: template, date, index_record
/]"><t>Cancel</t></a>
                    </div>
                </n.form.>
            </body>
        </n.html>
    </n.node_page.>
</macro>