ban_user_control

NAML documentation   Watch a video
   Usages of this macro
... in ban_user.naml
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<macro name="ban_user_control">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
.is_authenticated
Binary
Namespace: UserNamespace
>
        <then>
            <table style="margin-bottom:1em">
                <tr valign="top">
                    <n.ban_user_field
Macro
Parameters: do
.>
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_submitted_form
Macro
Requires: servlet
>
                            <then>
                                <td><n.checkbox
Macro
Requires: field
Parameters: style
/></td>
                                <td>
                                    <label for="[n.name
Binary
Namespace: FieldNamespace
/]"><t>Ban this user</t></label>
                                    <div class="weak-color" style="margin-top:.3em">
                                        <t>If you ban this user, he/she won't be able to do anything in <t.location.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/>.</t>
                                        <t>Remember that the banning action isn't efficient because the user can always come back with a different account.</t>
                                    </div>
                                </td>
                            </then>
                            <else>
                                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_checked
Macro
Requires: field
>
                                    <then>
                                        <td><img src="/images/success.png" class="image16"/></td>
                                        <td><t><t.author><b><n.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/></b></t.author> has been successfully banned.</t></td>
                                    </then>
                                </n.if.is_checked>
                            </else>
                        </n.if.not.is_submitted_form>
                    </n.ban_user_field.>
                </tr>
            </table>
        </then>
    </n.if.page_user.is_authenticated>
</macro>