subscription_form

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 "subscription_form".
... 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
<macro name="subscription_form" requires="node_page">
    <div class="shaded-bg-color rounded second-font main-title">
        <n.if.page_node.visitor_is_subscribed>
            <then><t>Edit Subscription</t></then>
            <else><t>Confirm Subscription</t></else>
        </n.if.page_node.visitor_is_subscribed>
    </div>
    <n.form.>
        <input type="hidden" name="action" value="save-subscription"/>
 
        <n.if.page_node.is_app>
            <then.app_subscription_controls/>
            <else.post_subscription_controls/>
        </n.if.page_node.is_app>
 
        <br/>
        <input type="submit" class="toolbar action-button" value="[t]Save Subscription[/t]"/>
 
        <n.if.page_node.visitor_is_subscribed>
            <then>
                <input type="button" class="toolbar action-button" value="[t]Unsubscribe[/t]" onclick="window.location='[n.page_node.unsubscribe_path/]'"/>
            </then>
        </n.if.page_node.visitor_is_subscribed>
 
        <t>or</t> <a href="javascript:history.back()"><t>Cancel</t></a>
    </n.form.>
</macro>