Advertisement
sriyanto

login

Oct 12th, 2022
922
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.31 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <!-- Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.  
  8.     <!-- Bootstrap CSS -->
  9.     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
  10.  
  11.     <title>Form Login</title>
  12.   </head>
  13.   <body>
  14.     <!-- start Form Registrasi -->
  15.     <div class="container">
  16.         <div class="row justify-content-center">
  17.             <div class="col-md-4 text-center mt-3 mb-3">
  18.                 <h4>Form Login</h4>
  19.                 <!-- pesan flash -->
  20.                 {% with messages = get_flashed_messages(with_categories=true) %}
  21.                 {% if messages %}
  22.                     {% for category, message in messages %}
  23.                     <!-- alert -->
  24.                     <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
  25.                         <strong>{{ message }}</strong>
  26.                         <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  27.                     </div>                    
  28.                     {% endfor %}                  
  29.                 {% endif %}
  30.                 {% endwith %}
  31.             </div>            
  32.         </div>
  33.         <div class="row justify-content-center">
  34.             <div class="col-md-4">
  35.                 <form action="{{ url_for('login') }}" method="post">                    
  36.                     <div class="mb-3">
  37.                         <label for="email" class="form-label">Username</label>
  38.                         <input type="email" class="form-control" id="email" placeholder="Masukkan email" name="email" autocomplete="off" required>
  39.                     </div>
  40.                     <div class="mb-3">
  41.                         <label for="password" class="form-label">Password</label>
  42.                         <input type="password" class="form-control" id="password" placeholder="Masukkan password" name="password" autocomplete="off" required>
  43.                     </div>    
  44.                     <button type="submit" class="btn btn-primary">Login</button>
  45.                     <div class="text-start">Belum Punya Akun...? Klik <a href="{{ url_for('registrasi') }}">Registrasi</a></div>
  46.                 </form>
  47.             </div>            
  48.         </div>
  49.     </div>
  50.     <!-- end Form Registrasi -->
  51.  
  52.     <!-- Optional JavaScript; choose one of the two! -->
  53.  
  54.     <!-- Option 1: Bootstrap Bundle with Popper -->
  55.     <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>
  56.  
  57.     <!-- Option 2: Separate Popper and Bootstrap JS -->
  58.     <!--
  59.    <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>
  60.    <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>
  61.    -->
  62.   </body>
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement