muhammad_nasif

login.html

Dec 9th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.42 KB | None | 0 0
  1. <!DOCTYPE html>
  2. {% load static %}
  3. <html lang="en">
  4.  
  5. <head>
  6.     <meta charset="UTF-8">
  7.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8.  
  9.     <!-- Bootstrap CSS -->
  10.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
  11.          integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  12.    
  13.     <title>Startech</title>
  14. </head>
  15. <body>
  16. <nav class="navbar justify-content-center navbar-dark bg-dark">
  17.     <li class="nav-item">
  18.         <a class="navbar-brand" href="home">Home</a>
  19.     </li>
  20.     <li class="nav-item">
  21.         <a class="navbar-brand" href="">Laptop</a>
  22.     </li>
  23.     <li class="nav-item">
  24.         <a class="navbar-brand" href="">Headphone</a>
  25.     </li>
  26.     <li class="nav-item">
  27.         <a class="navbar-brand" href="">Mouse</a>
  28.     </li>
  29.     <li class="nav-item">
  30.         <a class="navbar-brand" href="">Chair</a>
  31.     </li>
  32.     <li class="nav-item">
  33.         <a class="navbar-brand" href="">Component</a>
  34.     </li>
  35.     {% if flag == 0 %}
  36.         <ul class="nav justify-content-end">
  37.             <li class="nav-item">
  38.                 <a class="navbar-brand" href="login">Log In</a>
  39.             </li>
  40.  
  41.         </ul>
  42.  
  43.     {% elif flag == 1 %}
  44.         <a class="navbar-brand" href="sales_entry">Sales</a>
  45.         <ul class="nav justify-content-end">
  46.             <li class="nav-item">
  47.                 <a class="navbar-brand" href="logout">Log Out</a>
  48.             </li>
  49.         </ul>
  50.     {% elif flag == 2 %}
  51.         <a class="navbar-brand" href="servicing">Servicing</a>
  52.         <ul class="nav justify-content-end">
  53.             <li class="nav-item">
  54.                 <a class="navbar-brand" href="logout">Log Out</a>
  55.             </li>
  56.         </ul>
  57.     {% endif %}
  58.  
  59. </nav>
  60. {% if messages %}
  61.     <ul class="messages">
  62.         {% for message in messages %}
  63.             <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
  64.         {% endfor %}
  65.     </ul>
  66. {% endif %}
  67.  
  68. <div class="container">
  69.     <div class="jumbotron">
  70.         <h1 class="text-center">Log In</h1>
  71.         <form method="POST" action="">
  72.             {% csrf_token %}
  73.  
  74.             <br>
  75.             <input type="text" class="form-control" placeholder="Username" name="username">
  76.             <br>
  77.             <input type="password" class="form-control" placeholder="Password" name="password">
  78.             <br>
  79.             <div class="text-center">
  80.                 <button type="submit" class="btn btn-primary">Submit</button>
  81.             </div>
  82.  
  83.         </form>
  84.     </div>
  85. </div>
  86.  
  87. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
  88.        integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
  89.        crossorigin="anonymous"></script>
  90. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
  91.        integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
  92.        crossorigin="anonymous"></script>
  93. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
  94.        integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
  95.        crossorigin="anonymous"></script>
  96. <script>
  97.     if (window.history.replaceState) {
  98.         window.history.replaceState(null, null, window.location.href);
  99.     }
  100. </script>
  101. </body>
  102. </html>
Advertisement
Add Comment
Please, Sign In to add comment