<!DOCTYPE html>
<html>
    <head>
        <title>Change Password</title>
        <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/changePassword.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>
                <% if(locals.user) {%>
                    <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="/users/home">HOME</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/users/conferences">CONFERENCES</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/users/profile">PROFILE</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/users/settings">SETTINGS</a>
                            </li> 
                            <li class="nav-item">
                                <a class="nav-link" href="/contact">CONTACT</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/users/destroy-session">LOGOUT</a>
                            </li>
                        </ul>
                    </div> 
                <% } else{ %>
                    <a class="navbar-brand" href="#" style="color:chartreuse;">IIITA CMS</a>
                    <div class="collapse navbar-collapse" id="collapsibleNavbar">
                        <ul class="navbar-nav">
                            <li class="nav-item">
                                <a class="nav-link" href="/users/home">HOME</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/users/login">LOGIN</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/users/signup">SIGNUP</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/contact">CONTACT</a>
                            </li>
                        </ul>
                    </div>  
                <% } %>
            </nav>
        </div>
        <div id="container">
            <div id="container-header">
                <div class="container-header-text">
                     Change Password
                </div>
            </div>
            <div id="container-body">
                <form action="/users/changePassword/<%=token%>" method="post">
                    <div id="form-item">
                        <input type="password" id="password" name="password" placeholder="New Password" required>
                    </div>
                    <div id="form-item">
                        <input type="password" id="password" name="confirmPassword" placeholder="Confirm New Password" required>
                    </div>
                    <div id="form-item">
                        <button type="submit">Submit</button>
                    </div>
                </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>