subscribe_user_top_digest

NAML documentation   Watch a video
   Usages of this macro
... in subscribe_user_top_digest.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<macro name="subscribe_user_top_digest" requires="servlet">
     <n.node_page
Macro
Requires: servlet
Parameters: do
.>
         <n.set_local_user
Macro
Parameters: user
.get_user_from_id
Binary
Namespace: NabbleNamespace
Parameters: user_id, do
 user_id="[n.get_parameter
Binary
Namespace: RequestNamespace
Parameters: name
 name='user'/]" />
         <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
/]" />
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
            <then>
                     
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="save-subscription" value2="[n.action_parameter
Macro
/]">
                    <then>
                                 
                        <n.local_subscription
Macro
Parameters: do
.save
Binary
Namespace: SubscriptionNamespace
Parameters: to, type
                        to="DESCENDANTS"
                        type="DAILY_DIGEST"
                        />
                            
                       <n.redirect_to
Binary
Namespace: ServletNamespace
Parameters: url
.subscription_saved_user_url2
Macro
/> 
 
                    </then>
                </n.if.equal>
            </then>
        </n.if.is_submitted_form>
        <n.html
Macro
Parameters: head, body
>
             <head>
                <n.title
Macro
Parameters: text
.><t>Subscribe Top Digest Only</t></n.title.>
                <n.main_title_css
Macro
/>
            </head>
            <body>
                <n.local_user
Macro
Parameters: do
.profile_header
Macro
Requires: user
/>
                <br/>
                <div class="shaded-bg-color rounded second-font main-title">
                    <t>Subscribe User to Top Digest Only</t>
                </div>
                <div style="font-weight:bold;margin: 2em 0 1em">
                    <t>Do you really want to subscribe this user to <t.location><a href="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, index_record
/]"><n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/></a></t.location> TOP Digest only?  (Remember to "Unsubscribe All Children" first)</t>
                </div>
                
               <n.form
Macro
Requires: servlet
Parameters: macro, method, onsubmit, content
.>
                   <input type="hidden" name="node" value="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
/]"/>
                   <input type="hidden" name="action" value="save-subscription"/>
                   <br/><input type="submit" class="toolbar action-button" value="[t]Save Subscription[/t]"/> 
                   <t>or</t> <a href="javascript:history.back()"><t>Cancel</t></a> 
                </n.form.>
            </body>
        </n.html>
    </n.node_page.>
</macro>