login_page

NAML documentation   Watch a video
   Usages of this macro
... in login_page.naml
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
69
70
71
72
73
74
75
76
77
<override_macro name="login_page" requires="servlet">
    <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="error"><n.false
Binary
Namespace: BasicNamespace
/></n.set_var.>
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
        <then>
            <n.do_login
Binary
Namespace: ServletNamespace
Parameters: password, nextUrl, email
>
                <email><n.email_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></email>
                <password><n.password_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></password>
                <nextUrl><n.nextUrl_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></nextUrl>
            </n.do_login>
            <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="error"><n.true
Binary
Namespace: BasicNamespace
/></n.set_var.>
        </then>
    </n.if.is_submitted_form>
    <n.html
Macro
Parameters: head, body
>
        <head>
            <meta name="robots" content="noindex,nofollow"/>
            <n.title
Macro
Parameters: text
.><t>Login</t></n.title.>
            <n.email_field
Macro
Parameters: do
.focus
Macro
Requires: field
/>
            <script type="text/javascript">
                var loginNextUrl = '<n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="/"><n.nextUrl_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></n.default.>';
            </script>
        </head>
        <body>
            <h1 class="weak-color"><t>DCA Member Login</t></h1>
 
            <n.login_message
Macro
/>
 
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.var
Binary
Namespace: BasicNamespace
Parameters: name
 name="error">
                <then.format_error
Macro
Parameters: message, prompt
                    message="[t]Incorrect Login![/t]"
                    prompt="[t]Please re-enter your email/password and click Login.[/t]"
                />
            </n.if.var>
 
            <n.login_form
Macro
/>
            <n.register_now_section
Macro
/>
        </body>
    </n.html>
</override_macro>
Overrides administrator change
... in login_page.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
<override_macro name="login_page" requires="servlet">
    <n.set_var. name="error"><n.false/></n.set_var.>
    <n.if.is_submitted_form>
        <then>
            <n.do_login>
                <email><n.email_field.value/></email>
                <password><n.password_field.value/></password>
                <nextUrl><n.nextUrl_field.value/></nextUrl>
            </n.do_login>
            <n.set_var. name="error"><n.true/></n.set_var.>
        </then>
    </n.if.is_submitted_form>
    <n.html>
        <head>
            <meta name="robots" content="noindex,nofollow"/>
            <n.title.><t>Login</t></n.title.>
            <n.email_field.focus/>
            <script type="text/javascript">
                var loginNextUrl = '<n.default. to="/"><n.nextUrl_field.value/></n.default.>';
            </script>
        </head>
        <body>
            <h1 class="weak-color"><t>DCA Member Login</t></h1>
            <nabble_img src="burgee.jpg" border="0" class="left"/>
            <n.login_message/>
 
            <n.if.var name="error">
                <then.format_error
                    message="[t]Incorrect Login![/t]"
                    prompt="[t]Please re-enter your email/password and click Login.[/t]"
                />
            </n.if.var>
 
            <n.login_form/>
            <n.register_now_section/>
        </body>
    </n.html>
</override_macro>
Overrides default macro
... in login.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
<macro name="login_page" requires="servlet">
    <n.set_var. name="error"><n.false/></n.set_var.>
    <n.if.is_submitted_form>
        <then>
            <n.do_login>
                <email><n.email_field.value/></email>
                <password><n.password_field.value/></password>
                <nextUrl><n.nextUrl_field.value/></nextUrl>
            </n.do_login>
            <n.set_var. name="error"><n.true/></n.set_var.>
        </then>
    </n.if.is_submitted_form>
    <n.html>
        <head>
            <meta name="robots" content="noindex,nofollow"/>
            <n.title.><t>Login</t></n.title.>
            <n.email_field.focus/>
            <script type="text/javascript">
                var loginNextUrl = '<n.default. to="/"><n.nextUrl_field.value/></n.default.>';
            </script>
        </head>
        <body>
            <h1 class="weak-color"><t>Login</t></h1>
 
            <n.login_message/>
 
            <n.if.var name="error">
                <then.format_error
                    message="[t]Incorrect Login![/t]"
                    prompt="[t]Please re-enter your email/password and click Login.[/t]"
                />
            </n.if.var>
 
            <n.login_form/>
            <n.register_now_section/>
        </body>
    </n.html>
</macro>