subscribe_members

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 "subscribe_members".
... in add_digest_subscribers.naml
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<macro name="subscribe_members" requires="node">
    <n.if.is_submitted_form>
        <then.process_member_subscriptions/>
    </n.if.is_submitted_form>
 
    <n.unsubscribed_members.>
        <n.if.has_more_elements>
            <then>
                <div class="weak-color" style="margin:.5em 0 .5em">
                    Unsubscribed members are listed below.
                    Select who you would like to be subscribed:
                </div>
                <n.form.>
                    <input type="hidden" name="filter" value="members"/>
                    <div class="medium-border-color border1" style="padding:.5em;height:25em;overflow:auto">
                        <table>
                            <n.loop.>
                                <n.page_node.subscription_for. email="[n.current_user.user_email/]">
                                    <n.if.not.is_subscribed>
                                        <then>
                                            <n.current_user.member_field.>
                                                <tr>
                                                    <td><n.checkbox/></td>
                                                    <td><n.current_user.avatar/></td>
                                                    <td><label for="[n.name/]"><n.current_user.name/></label></td>
                                                </tr>
                                            </n.current_user.member_field.>
                                        </then>
                                    </n.if.not.is_subscribed>
                                </n.page_node.subscription_for.>
                            </n.loop.>
                        </table>
                    </div>
                    <div style="margin-top:1.4em">
                        <input type="submit" value="Add Subscribers" />
                    </div>
                </n.form.>
            </then>
            <else>
                <div class="weak-color" style="margin:.5em 0 .5em">
                    No unsubscribed members found.
                </div>
            </else>
        </n.if.has_more_elements>
    </n.unsubscribed_members.>
</macro>