change_permissions

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "change_permissions".
... in change_permissions.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
<macro name="change_permissions" requires="servlet">
    <n.node_page.>
        <n.if.not.visitor.can_change_permissions_of.page_node>
            <then>
                <n.login.><t>Only authorized users can proceed in this area.</t></n.login.>
            </then>
        </n.if.not.visitor.can_change_permissions_of.page_node>
 
        <n.if.is_submitted_form>
            <then>
                <n.save_all_permissions/>
                <n.if.page_node.is_root>
                    <then.save_all_site_permissions />
                </n.if.page_node.is_root>
                <n.redirect_to.page_node.path/>
            </then>
        </n.if.is_submitted_form>
 
        <n.html>
            <head>
                <META NAME="robots" CONTENT="noindex,nofollow"/>
                <n.title.><t>Change Permissions</t></n.title.>
                <n.permission_javascript/>
                <n.permission_stylesheet/>
            </head>
            <body>
                <n.edit_header first_text="[t]Change Permissions[/t]" second_text="[n.page_node.get_app_node.subject/]" />
 
                <n.form.>
                    <n.permissions_table/>
 
                    <div style="margin-top:1.4em">
                        <input type="submit" value="[t]Save Changes[/t]" />
                        <t>or</t> <a href="[n.page_node.path/]"><t>Cancel</t></a>
                    </div>
                </n.form.>
            </body>
        </n.html>
    </n.node_page.>
</macro>