move_node

NAML documentation   Watch a video
   Usages of this macro
... in move_node.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
<macro name="move_node" 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_move
Macro
Requires: user
Parameters: node_attr
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
>
            <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_move.page_node>
 
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
            <then.save_parent_changes
Macro
/>
        </n.if.is_submitted_form>
 
        <n.html
Macro
Parameters: head, body
>
            <head>
                <META NAME="robots" CONTENT="noindex,nofollow"/>
                <n.title
Macro
Parameters: text
.><t>Move Post</t></n.title.>
                <n.parent_url_field
Macro
Parameters: do
.focus
Macro
Requires: field
/>
            </head>
            <body>
                <n.edit_header
Macro
Parameters: first_text, second_text
 first_text="Move Post" second_text="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/]" />
                <n.show_move_node_error
Macro
/>
                <n.form
Macro
Requires: servlet
Parameters: macro, method, onsubmit, content
.>
                    <div class="weak-color" style="margin:1.5em 0 .5em">
                        <t>Enter permalink of the <b>post</b> or <b>forum</b> that will be the new parent,
                            or leave blank to make this message an independent topic:</t>
                    </div>
                    <n.parent_url_field
Macro
Parameters: do
.input
Macro
Requires: field
Parameters: size, maxlength, tabindex, type
 size="60" />
                    <div style="margin-top:1.4em">
                        <input type="submit" value="[t]Move Post[/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>