root/branches/release-29/tmpl/cms/login.tmpl @ 1309

Revision 1309, 2.7 kB (checked in by ddavis, 22 months ago)

standarize js comment tag escape. BugzID:58265

  • Property svn:keywords set to Author Date Id Revision
Line 
1<mt:setvar name="page_title" value="<__trans phrase="Sign in">">
2<mt:setvar name="complete" value="1">
3<mt:include name="include/chromeless_header.tmpl">
4
5<script type="text/javascript">
6/* <![CDATA[ */
7// if this loads within our modal dialog iframe, force the user to
8// login from the 'top' of the browser.
9if (window.top && (window.top.location != window.location)) {
10    // strip any parameters to return them to the main menu,
11    // since leaving them will display the modal dialog in the
12    // full window.
13    var loc = window.location.href;
14    loc = loc.replace(/\?.+/, '');
15    window.top.location.href = loc;
16}
17
18function init() {
19    var u = getByID("username");
20    if (u.value != '') {
21        var p = getByID("password");
22        p.focus();
23    } else {
24        u.focus();
25    }
26}
27TC.attachLoadEvent(init);
28/* ]]> */
29</script>
30
31<form method="post" action="<mt:var name="script_url">">
32<mt:loop name="query_params">
33<input type="hidden" name="<mt:var name="name" escape="html">" value="<mt:var name="value" escape="html">" />
34</mt:loop>
35
36<mt:if name="logged_out">
37    <mt:if name="delegate_auth">
38        <mtapp:statusmsg
39            id="delegate_auth_logout"
40            class="info">
41            <__trans phrase="Your Movable Type session has ended.">
42        </mtapp:statusmsg>
43    <mt:else>
44        <mtapp:statusmsg
45            id="session_end_logout"
46            class="info">
47            <__trans phrase="Your Movable Type session has ended. If you wish to sign in again, you can do so below.">
48        </mtapp:statusmsg>
49    </mt:if>
50<mt:else>
51    <mt:if name="login_again">
52        <mtapp:statusmsg
53            id="action_logout"
54            class="info">
55            <__trans phrase="Your Movable Type session has ended. Please sign in again to continue this action.">
56        </mtapp:statusmsg>
57    <mt:else>
58        <mt:if name="error">
59            <mtapp:statusmsg
60                id="generic-error"
61                class="error">
62                <mt:var name="error">
63            </mtapp:statusmsg>
64        </mt:if>
65    </mt:if>
66</mt:if>
67<mt:unless name="delegate_auth">
68    <mt:var name="login_fields">
69    <mt:if name="can_recover_password">
70        <div class="left"><a href="<mt:var name="mt_url">?__mode=start_recover"><__trans phrase="Forgot your password?"></a></div>
71    </mt:if>
72        <div class="actions-bar">
73            <div class="actions-bar-inner pkg actions">
74                <button
75                    type="submit"
76                    accesskey="s"
77                    title="<__trans phrase="Sign In (s)">"
78                    class="primary-button"
79                    ><__trans phrase="Sign In"></button>
80            </div>
81        </div>
82</mt:unless>
83</form>
84
85<mt:include name="include/chromeless_footer.tmpl">
Note: See TracBrowser for help on using the browser.