freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/login.fmt
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 19 Nov 2009 09:25:45 +0100
changeset 151 b9e67a17bd10
parent 116 5263ee1916e5
permissions -rw-r--r--
Using white background
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     2 <html>
     3   <head>
     4     <title>${bundle.TITLE_PLAIN}</title>
     5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     6     <#if user?? >
     7       <meta http-equiv="REFRESH" content="1;URL=/">
     8     </#if>
     9     <script type="text/javascript">
    10         function setFocus() {
    11             var name = document.getElementById("name");
    12             name.focus();
    13         }
    14     </script>  </head>
    15   <body bgcolor="white" onload="setFocus();">
    16       <h1>${bundle.TITLE}</h1>
    17       <h2>${bundle.LOGIN}</h2>
    18 
    19       <#if user?? >
    20         ${bundle("logged", user?string)}
    21         <a href="/">${bundle.home}</a>
    22       <#else>
    23 
    24       <b>${message!""}</b>
    25 
    26       <form action="/login" method="post">
    27             ${bundle.NAME}: <input type="text" name="name" id="name"/>
    28             ${bundle.PASSWORD}: <input type="password" name="password"/>
    29             <input type="submit" value="${bundle.LOGIN}"/>
    30       </form>
    31       </#if>
    32       <hr/>
    33       ${bundle("copyright", version)}
    34   </body>
    35 </html>