<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/css/style.css">
    <title>Admin</title>
</head>

<body>
    <div class="container">
        <div>
            <ul>
                <li><a class="text-light" href="/"> Home Page</li>
                <li><a class="text-light" href="/booksList"> Books </a></li>
                <li><a class="text-light" href="/admin"> admin </a></li>
                <li><a class="text-light" href="/admin/addnewbook"> Add Book </a></li>
            </ul>

        </div>
        <div class="container flex">
            <form action="/admin/edit/<%= book._id %>" method="post">
                <div class="form-group">
                    <label>Book Name</label>
                    <input name="name" value="<%= book.name %>" class="form-controler" type="text">

                </div>
                <div class="form-group">
                    <label>Book author</label>
                    <input name="author" class="form-controler" type="text" value="<%= book.author %>">

                </div>
                <div class="form-group">
                    <label>Book desc</label>
                    <input name="desc" class="form-controler" type="text" value="<%= book.desc %>">

                </div>
                <div class="form-group">
                    <label>Book image</label>
                    <input name="image" class="form-controler" name type="text" value="<%= book.image %>">
                </div>
                <input class="btn" type="submit" value="Update">
            </form>

        </div>
    </div>
</body>

</html>