freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/login.fmt
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 20 Sep 2009 11:00:36 +0200
changeset 104 e37b229e238b
parent 88 a3be2be0112f
child 116 5263ee1916e5
permissions -rw-r--r--
Redirect after successful login to root page
     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   </head>
    10   <body>
    11       <h1>${bundle.TITLE}</h1>
    12       <h2>${bundle.LOGIN}</h2>
    13 
    14       <#if user?? >
    15         ${bundle("logged", user?string)}
    16         <a href="/">${bundle.home}</a>
    17       <#else>
    18 
    19       <b>${message!""}</b>
    20 
    21       <form action="/login" method="post">
    22             ${bundle.NAME}: <input type="text" name="name"/>
    23             ${bundle.PASSWORD}: <input type="password" name="password"/>
    24             <input type="submit" value="${bundle.LOGIN}"/>
    25       </form>
    26       </#if>
    27       <hr/>
    28       ${bundle("copyright", version)}
    29   </body>
    30 </html>