edit_post_extra_fields

   Usages of this macro
... in poll.naml
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<override_macro name="edit_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
.parent_node
Binary
Namespace: NodeNamespace
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.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.has_poll
Binary
Namespace: NodeNamespaceExt
Parameters: do
>
                    <then.edit_poll_form
Macro
Requires: node_page
/>
                    <else.add_poll_form
Macro
Requires: node_page
/>
                </n.if.page_node.has_poll>
            </div>
        </then>
    </n.if.both>
</override_macro>
Overrides default macro
... in edit_post.naml
143
144
145
146
147
148
149
150
151
152
153
154
<macro name="edit_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>
            </then>
        </n.if.visitor.is_registered>
    </n.extra_fields.>
</macro>