<!DOCTYPE html>
<html lang="en">
<head>
    <%- include('../partials/head.ejs')%>
</head>
<body>
  <div class="body-overlay">
    <header>
        <%- include('../partials/header.ejs')%>
    </header>
    <main>
        <div class="container">
            <h3>Edit User: <%=user._id %></h3>
            <form action="/users/<%=user._id%>?_method=PUT" method="POST">
                <input type="text" name="email" value="<%=user.email%>" /><br />
                <input type="password" name="password" value="<%=user.password%>" /><br />
                <input type="text" name="firstName" value="<%=user.firstName%>" /><br />
                <input type="text" name="lastName" value="<%=user.lastName%>" /><br />
                <input type="text" name="addressStreet" value="<%=user.addressStreet%>" /><br />
                <input type="text" name="addressCity" value="<%=user.addressCity%>" /><br />
                <input type="text" name="addressState" value="<%=user.addressState%>" /><br />
                <input type="text" name="addressZip" value="<%=user.addressZip%>" /><br />
                <input class="btn btn-primary btn-sm" type="submit" value="Submit" />
            </form>
        </div>   
    </main>
    <footer>
        <%- include('../partials/footer.ejs')%>
    </footer>
</body>
