Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- Bootstrap CSS -->
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
- <title>Form Login</title>
- </head>
- <body>
- <!-- start Form Registrasi -->
- <div class="container">
- <div class="row justify-content-center">
- <div class="col-md-4 text-center mt-3 mb-3">
- <h4>Form Login</h4>
- <!-- pesan flash -->
- {% with messages = get_flashed_messages(with_categories=true) %}
- {% if messages %}
- {% for category, message in messages %}
- <!-- alert -->
- <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
- <strong>{{ message }}</strong>
- <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
- </div>
- {% endfor %}
- {% endif %}
- {% endwith %}
- </div>
- </div>
- <div class="row justify-content-center">
- <div class="col-md-4">
- <form action="{{ url_for('login') }}" method="post">
- <div class="mb-3">
- <label for="email" class="form-label">Username</label>
- <input type="email" class="form-control" id="email" placeholder="Masukkan email" name="email" autocomplete="off" required>
- </div>
- <div class="mb-3">
- <label for="password" class="form-label">Password</label>
- <input type="password" class="form-control" id="password" placeholder="Masukkan password" name="password" autocomplete="off" required>
- </div>
- <button type="submit" class="btn btn-primary">Login</button>
- <div class="text-start">Belum Punya Akun...? Klik <a href="{{ url_for('registrasi') }}">Registrasi</a></div>
- </form>
- </div>
- </div>
- </div>
- <!-- end Form Registrasi -->
- <!-- Optional JavaScript; choose one of the two! -->
- <!-- Option 1: Bootstrap Bundle with Popper -->
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
- <!-- Option 2: Separate Popper and Bootstrap JS -->
- <!--
- <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
- -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement