<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >
  <head>
    <title>Renkan Auth Login</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>

    <link rel="shortcut icon" href="../../../static/img/favicon.ico" th:href="@{/static/img/favicon.ico}" />

    <link href="../../../static/css/style.css" rel="stylesheet" th:href="@{/static/css/style.css}"/>
    <link href="../../../static/css/index.css" rel="stylesheet" th:href="@{/static/css/index.css}"/>
    
    <script th:remove="all" type="text/javascript" src="../../../static/lib/jquery.min.js"></script>
    <script th:remove="all" type="text/javascript" src="../../../static/js/thymol.js"></script> 
  </head>
  <body>
    <div id="container">
      <div id="wrapper">
        <header id="header">
            <h1><a href="../renkanIndex.html" id="home-link" th:href="@{/}" th:text="#{renkanAuth.renkan_login}">Renkan login</a></h1>
            <div id="header-clear"></div>
        </header>        
        <h2 th:text="#{renkanAdmin.site_login}">Site login</h2>
        <div id="inner-container">
            <div id="login-errors" th:if="${login_error}">
                <div th:text="#{renkanAuth.login_error_message}">Your login attempt was not successful, try again.</div>
                <div th:if="${session} and ${session.containsKey('SPRING_SECURITY_LAST_EXCEPTION')}"><span th:text="#{renkanAuth.login_error_cause}">Cause: </span>&nbsp;<span th:text="${session['SPRING_SECURITY_LAST_EXCEPTION'].message}">Cause of login error</span></div>
            </div>
            <form action="#" th:action="@{/j_spring_security_check}" method="post" id="login-form">
              <fieldset id="login-fieldset" class="form-fields">
                <div>
                    <label for="username" th:text="#{renkanAuth.username_label}">username:</label>
                    <input type="text" id="username" name="username"/>
                </div>
                <div>
                    <label for="password" th:text="#{renkanAuth.password_label}">password:</label>
                    <input type="password" name="password" id="password"/>
                </div>
                <input type="submit" value="log in" th:value="#{renkanAuth.log_in}"/>
              </fieldset>
            </form>
        </div>
      </div>
      <footer id="footer" th:substituteby="fragment/pageFragment::footerFragment">
        <div id="version">© <span class="version-date">2013</span> <a href="http://www.iri.centrepompidou.fr" target="_blanck">IRI</a> - Version <span class="version-version">0.0</span></div>
      </footer>      
    </div>
  </body>
</html>