delete_posts_control

NAML documentation   Watch a video
   Usages of this macro
... in ban_user.naml
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<macro name="delete_posts_control">
    <table style="margin-bottom:1em">
        <tr valign="top">
            <n.delete_posts_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>Delete all posts from this user</t></label>
                            <div class="weak-color" style="margin-top:.3em">
                                <t>The user will receive a copy of all delete posts by email, so that he/she can have a chance to save them.</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>All posts from <t.author><b><n.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/></b></t.author> have been successfully removed.</t></td>
                            </then>
                        </n.if.is_checked>
                    </else>
                </n.if.not.is_submitted_form>
            </n.delete_posts_field.>
        </tr>
    </table>
</macro>