<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>用户登录-纵横经济指标系统</title>
    <link rel="stylesheet" href="public/css/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="public/css/main.css">
    <link rel="stylesheet" href="public/css/font-awesome/font-awesome.min.css">
</head>
<body class="login-body">
<div class="container">
    <!--演示版-->
    <form class="form-signin" method="post" action="/login">
        <h1 class="d-flex justify-content-center mb-4">纵横造价指标系统</h1>
        <nav class="nav nav-tabs nav-justified mb-3" role="tablist" >
        </nav>
        <div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
            <input id="inputEmail" name="account" class="form-control " placeholder="账号" required="" autofocus="">
        </div>
        <div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
            <input id="inputPassword" name="password" class="form-control " placeholder="输入密码" required="" type="password">
        </div>
        <% if(errorMessage !== undefined && errorMessage !== null) { %>
        <div class="form-group">
            <div class="alert alert-danger" role="alert">
                <strong>登录失败</strong> <%= errorMessage %>
            </div>
        </div>
        <% } %>
        <div class="form-group">
            <button class="btn btn-primary btn-block" type="submit">登录</button>
            <input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
        </div>
    </form>
</div>
<!-- JS. -->
<script src="/public/js/jquery/jquery-3.2.1.min.js"></script>
<script src="/public/js/popper/popper.min.js"></script>
<script src="/public/js/bootstrap/bootstrap.min.js"></script>
<script src="/public/js/global.js"></script>
</body>

</html>