new_post_extra_fields

NAML documentation   Watch a video
   Usages of this 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
Macro
Requires: node_page
Parameters: fields
.>
        <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>
    </n.extra_fields.>
</macro>