manage_users_and_groups

NAML documentation   Watch a video
   Usages of this macro
... in manage_users_and_groups.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
46
47
48
49
50
51
52
53
54
<macro name="manage_users_and_groups" requires="servlet">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_manage_users_and_groups
Macro
Requires: user
>
        <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_manage_users_and_groups>
 
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
        <then.save_users_and_group
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>Manage Users & Groups</t></n.title.>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
                <then>
                    <script type="text/javascript">
                        $(document).ready(function() {
                            notice('<t>Data successfully saved</t>', 2000, 1000);
                        });
                    </script>
                </then>
            </n.if.is_submitted_form>
        </head>
        <body>
            <n.edit_header
Macro
Parameters: first_text, second_text
 first_text="[t]Manage Users & Groups[/t]" second_text="[n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/]" />
 
            <div class="weak-color" style="margin-top:1em">
                <t>Below you can manage groups and users. You can copy and paste users in order
                to move them from one group to another.</t>
            </div>
 
            <div class="weak-color" style="margin:.5em 0 1em">
                <t>You can also <n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.change_permissions_link
Macro
Requires: node
Parameters: text, title, class
.>change the permissions</n.root_node.change_permissions_link.> of the groups below.</t>
            </div>
 
            <n.user_groups
Binary
Namespace: NabbleNamespace
Parameters: do
.>
                <n.add
Binary
Namespace: StringList
Parameters: s
.members_group
Macro
/>
                <n.add
Binary
Namespace: StringList
Parameters: s
.administrators_group
Binary
Namespace: NabbleNamespace
/>
                <n.sort
Binary
Namespace: StringList
/>
                <n.vertical_tab_control
Macro
Parameters: vertical_tabs
.>
                    <n.add_new_group_vertical_tab
Macro
/>
                    <n.add_all_users_vertical_tab
Macro
/>
                    <n.add_registered_vertical_tab
Macro
/>
                    <n.loop
Macro
Requires: sequence
Parameters: by, do
.>
                        <n.add_group_vertical_tab
Macro
Parameters: group
 group="[n.current_group
Binary
Namespace: GroupList
/]"/>
                    </n.loop.>
                    <n.reset_list_index
Binary
Namespace: ListSequence
/>
                </n.vertical_tab_control.>
            </n.user_groups.>
        </body>
    </n.html>
</macro>