mailing_list_archive_settings

NAML documentation   Watch a video
   Usages of this macro
... in mailing_list_settings.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<macro name="mailing_list_archive_settings" requires="servlet">
    <n.node_page
Macro
Requires: servlet
Parameters: do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_edit
Macro
Requires: user
Parameters: node_attr
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
>
            <then>
                <n.login
Macro
Requires: servlet
Parameters: message
.><t>Only authorized users can proceed in this area.</t></n.login.>
            </then>
        </n.if.not.visitor.can_edit.page_node>
 
        <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.get_this_mailing_list_archive
Binary
Namespace: NodeNamespace
Parameters: do
.>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_submitted_form
Macro
Requires: servlet
>
                <then.fill_in_mailing_list_archive_fields
Macro
Requires: mailing_list
/>
                <else>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_remove_mailing_list_archive_settings
Macro
>
                        <then.remove_mailing_list_archive_settings_and_redirect
Macro
Requires: mailing_list, node_page
/>
                        <else.save_mailing_list_archive_settings_and_redirect
Macro
Requires: mailing_list, node_page
/>
                    </n.if.is_remove_mailing_list_archive_settings>
                </else>
            </n.if.not.is_submitted_form>
 
            <n.html
Macro
Parameters: head, body
>
                <head>
                    <META NAME="robots" CONTENT="noindex,nofollow"/>
                    <n.title
Macro
Parameters: text
.><t>Mailing List Archive Settings</t></n.title.>
                    <n.mailing_list_address_field
Macro
Parameters: do
.focus
Macro
Requires: field
/>
                    <style type="text/css">
                        div.field-title { margin-top: 0; }
                        div.tip { font-size:80%; margin-top:.4em; }
                    </style>
                    <script type="text/javascript">
                        $(document).ready(function() {
                            $('form').submit(function() {
                                var action = $('#action').val();
                                if (action == 'remove')
                                    return confirm('<t>Do you really want to remove the mailing list archive settings?</t>');
                                return true;
                            });
                        });
                    </script>
                </head>
                <body>
                    <n.edit_header
Macro
Parameters: first_text, second_text
 first_text="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.get_app_node
Binary
Namespace: NodeNamespace
Parameters: do
.subject
Macro
Requires: node
/]" second_text="[t]Mailing List Archive Settings[/t]" />
 
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
                        <then.show_mailing_list_error
Macro
/>
                    </n.if.is_submitted_form>
 
                    <n.form
Macro
Requires: servlet
Parameters: macro, method, onsubmit, content
.>
                        <input id="action" type="hidden" name="action" value="save"/>
                        <n.mailing_list_address_group
Macro
Requires: mailing_list
/>
                        <n.mailing_list_website_group
Macro
Requires: mailing_list
/>
                        <n.mailing_list_server_group
Macro
Requires: mailing_list
/>
                        <n.mailing_list_subject_prefix_group
Macro
Requires: mailing_list
/>
                        <n.mailing_list_other_settings_group
Macro
Requires: mailing_list
/>
 
                        <input type="submit" class="toolbar action-button" value="[t]Save Settings[/t]" onclick="$('#action').val('save')"/>
                        <input type="submit" class="toolbar action-button" value="[t]Remove Settings[/t]" onclick="$('#action').val('remove')"/>
                        <t>or</t> <a href="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, index_record
 /]"><t>Cancel</t></a>
                    </n.form.>
                </body>
            </n.html>
        </n.page_node.get_this_mailing_list_archive.>
    </n.node_page.>
</macro>