<!DOCTYPE html>
<html lang="de" dir="ltr" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>e-commerce</title>
    <link href="../static/css/ecom.css" rel="stylesheet" th:href="@{/css/ecom.css}"/>
    <link href="../static/css/dialog.css" rel="stylesheet" th:href="@{/css/dialog.css}"/>
</head>
<body>
    <nav th:replace="fragments/header :: header">Header</nav>
    <main>
        <form class="dialog-content" th:action="@{/register}" th:object="${customer}" method="post">
            <div class="container">
                <label for="username">Username</label>
                <input type="text" th:field="*{username}" placeholder="Enter Username" id="username" required>

                <label><b>Password</b></label>
                <input type="password" th:field="*{password}" placeholder="Enter Password" name="pwd" required>

                <button type="submit" name="action" value="register">Login</button>
            </div>
        </form>
    </main>
    <footer th:replace="fragments/footer :: footer"></footer>
</body>
</html>