subscription_form_user

NAML documentation   Watch a video
   Usages of this macro
... in subscribe_user.naml
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<macro name="subscription_form_user" requires="node_page,user">
    <div class="shaded-bg-color rounded second-font main-title">
        <t>Edit Subscription of This User inside <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/></t>        
    </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 to all Children[/t]"/>        
        
        <n.set_local_user
Macro
Parameters: user
.this_user
Binary
Namespace: UserNamespace
Parameters: do
/>
        <n.set_local_subscription
Macro
Parameters: subscription
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subscription_for
Binary
Namespace: NodeNamespace
Parameters: do, email
 email="[n.local_user
Macro
Parameters: do
.user_email
Binary
Namespace: UserNamespace
/]" />
        
        <input type="button" class="toolbar action-button" value="[t]Save Digest top only[/t]" onclick="window.location='[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subscribe_user_top_digestl_path
Macro
Requires: node
/]'"/> 
        
        <input type="button" class="toolbar action-button" value="[t]Unsubscribe[/t]" onclick="window.location='[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.unsubscribe_user_path
Macro
Requires: node
/]'"/>
        
        <input type="button" class="toolbar action-button" value="[t]Unsubscribe All Children[/t]" onclick="window.location='[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.unsubscribe_user_all_path
Macro
Requires: node
/]'"/>
        <t>or</t> <a href="javascript:history.back()"><t>Cancel</t></a>
    </n.form.>
</macro>