freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/login.fmt
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 07 Sep 2009 22:27:39 +0200
changeset 70 3c9966fc0352
parent 59 fd7e8e705b75
child 88 a3be2be0112f
permissions -rw-r--r--
More reliable way to login
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     2 <html>
     3   <head>
     4     <title></title>
     5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     6   </head>
     7   <body>
     8       <h1>${bundle.TITLE}</h1>
     9       <h2>${bundle.LOGIN}</h2>
    10 
    11       <#if user?? >
    12         ${bundle("logged", user?string)}
    13         <a href="/">${bundle.home}</a>
    14       <#else>
    15 
    16       <b>${message!""}</b>
    17 
    18       <form action="/login" method="post">
    19             ${bundle.NAME}: <input type="text" name="name"/>
    20             ${bundle.PASSWORD}: <input type="password" name="password"/>
    21             <input type="submit" value="${bundle.LOGIN}"/>
    22       </form>
    23       </#if>
    24   </body>
    25 </html>