<!DOCTYPE html>
<html>
    <head>
        <title>Home</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
        <link rel="stylesheet" type="text/css" href="/css/setting.css">
    </head>
    <body>
        <div class="container-fluid mt-3">
            <nav class="navbar navbar-expand-md bg-dark navbar-dark fixed-top">
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="collapsibleNavbar">
                    <a class="navbar-brand" href="#" style="color:chartreuse;">IIITA CMS</a>
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class="nav-link" href="/reviewer/home">PAPER SUBMISSIONS</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link active" href="/reviewer/login-info">LOGIN INFO</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/reviewer/settings">SETTINGS</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/users/destroy-session">LOGOUT</a>
                        </li>
                    </ul>
                </div> 
            </nav>
        </div>
        <div class="container-fluid box">
            <div class="login-info-header">
                LOGIN INFO:
            </div>
            <div class="login-info-box">
                <form action="/users/updateLoginInfo" method="post">
                    <div class="form-group">
                       <label for="email">Email:</label>
                       <input type="email" class="form-control" id="email"  name="email" value="<%=profileUser.email%>" required>
                    </div>
                    <div class="form-group">
                       <label for="pwd">Password:</label>
                       <input type="password" class="form-control" id="pwd" name="password" value="<%=profileUser.password%>" required>
                    </div>
                    <button type="submit" class="btn btn-success">Update</button>
                </form>
            </div>
        </div>
        <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF" crossorigin="anonymous"></script>
    </body>
</html>