new_post_extra_fields

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 "new_post_extra_fields".
... in poll.naml
74
75
76
77
78
79
80
81
82
83
84
85
<override_macro name="new_post_extra_fields" requires="node_page">
    <n.overridden/>
 
    <n.if.both condition1="[n.page_node.is_app/]" condition2="[n.visitor.can_create_poll_in.page_node/]">
        <then>
            <div class="extra-fields">
                <img src="/images/add.png" width="12" height="12" style="margin-top:.2em"/>
                <n.add_poll_form/>
            </div>
        </then>
    </n.if.both>
</override_macro>
Overrides default macro
... in reply.naml
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<macro name="new_post_extra_fields" requires="node_page">
    <n.extra_fields.>
        <n.if.visitor.is_registered>
            <then>
                <div class="extra-fields">
                    <n.alert_field.checkbox style="margin-top:.1em"/>
                    <label for="[n.alert_field.name/]"><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 />
                </div>
            </then>
        </n.if.visitor.is_registered>
    </n.extra_fields.>
</macro>