subscription_form

   Usages of this macro
... in subscribe.naml
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<macro name="subscription_form" requires="node_page">
    <div class="shaded-bg-color rounded second-font main-title">
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.visitor_is_subscribed
Binary
Namespace: NodeNamespace
>
            <then><t>Edit Subscription</t></then>
            <else><t>Confirm Subscription</t></else>
        </n.if.page_node.visitor_is_subscribed>
    </div>
    <n.form
Macro
Requires: servlet
Parameters: macro, method, onsubmit, content
.>
        <input type="hidden" name="action" value="save-subscription"/>
 
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.is_app
Binary
Namespace: NodeNamespace
>
            <then.app_subscription_controls
Macro
/>
            <else.post_subscription_controls
Macro
Requires: node_page
/>
        </n.if.page_node.is_app>
 
        <n.show_mailing_list_alert
Macro
Requires: node_page
/>
 
        <br/>
        <input type="submit" class="toolbar action-button" value="[t]Save Subscription[/t]"/>
 
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.visitor_is_subscribed
Binary
Namespace: NodeNamespace
>
            <then>
                <input type="button" class="toolbar action-button" value="[t]Unsubscribe[/t]" onclick="window.location='[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.unsubscribe_path
Macro
Requires: node
/]'"/>
            </then>
        </n.if.page_node.visitor_is_subscribed>
 
        <t>or</t> <a href="javascript:history.back()"><t>Cancel</t></a>
    </n.form.>
</macro>