new_post_extra_fields

NAML documentation   Watch a video
   Usages of this macro
... in poll.naml
75
76
77
78
79
80
81
82
83
84
85
86
<override_macro name="new_post_extra_fields" requires="node_page">
    <n.overridden/>
 
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
 condition1="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.is_app
Binary
Namespace: NodeNamespace
/]" condition2="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_create_poll_in
Macro
Requires: user
Parameters: node_attr
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
/]">
        <then>
            <div class="extra-fields">
                <img src="/images/add.png" width="12" height="12" style="margin-top:.2em"/>
                <n.add_poll_form
Macro
Requires: node_page
/>
            </div>
        </then>
    </n.if.both>
</override_macro>
Overrides default macro
... in reply.naml
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<macro name="new_post_extra_fields" requires="node_page">
    <n.extra_fields
Macro
Requires: node_page
Parameters: fields
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.is_associated_with_mailing_list_archive
Binary
Namespace: NodeNamespace
>
            <then>
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.is_registered
Binary
Namespace: UserNamespace
>
                    <then>
                        <div class="extra-fields">
                            <n.alert_field
Macro
Parameters: do
.checkbox
Macro
Requires: field
Parameters: style
 style="margin-top:.1em"/>
                            <label for="[n.alert_field
Macro
Parameters: do
.name
Binary
Namespace: FieldNamespace
/]"><t>Alert me by email when someone posts to this thread</t></label>
                        </div>
        
                        <div class="extra-fields">
                            <img src="/images/mail.png" width="18" height="13" style="margin-top:.2em"/>
                            <n.send_node_as_email_input
Macro
 />
                        </div>
                    </then>
                </n.if.visitor.is_registered>
            </then>
        </n.if.not.page_node.is_associated_with_mailing_list_archive>
    </n.extra_fields.>
</macro>