muhammad_nasif

data_entry.html

Dec 11th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.21 KB | None | 0 0
  1. <!DOCTYPE html>
  2. {% load static %}
  3. <html lang="en">
  4. <head>
  5.     <meta charset="UTF-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.  
  8.     <!-- Bootstrap CSS -->
  9.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
  10.  
  11.     <title>Sales Entry</title>
  12.  
  13. </head>
  14. <body>
  15. <nav class="navbar justify-content-center navbar-dark bg-dark">
  16.     <a class="navbar-brand" href="home">Home</a>
  17.  
  18.     <a class="navbar-brand" href="sales_entry">Sales Entry</a>
  19.  
  20.     <a class="navbar-brand" href="product_info">Product Info</a>
  21.  
  22.     <a class="navbar-brand" href="check_stock">Check Stock</a>
  23.  
  24.     <a class="navbar-brand" href="sales_representative_status">Profile</a>
  25.  
  26.     <a class="navbar-brand" href="logout">Log Out</a>
  27.  
  28. </nav>
  29. <div class="container">
  30.     <div class="jumbotron">
  31.         <h1 class="text-center">Sales Data Entry</h1>
  32.         <form method="POST" action="">
  33.             {% csrf_token %}
  34.  
  35.             <br>
  36.             <div class="form-row">
  37.                 <div class="col">
  38.                     <input type="text" class="form-control" placeholder="Name" name="name" required>
  39.                 </div>
  40.                 <div class="col">
  41.                     <input type="number" class="form-control" placeholder="Phone No" name="phone_no" required>
  42.                 </div>
  43.             </div>
  44.  
  45.             <br>
  46.             <div class="form-row">
  47.                 <div class="col">
  48.                     <input type="text" class="form-control" placeholder="Area" name="area" required>
  49.                 </div>
  50.                 <div class="col">
  51.                     <input type="text" class="form-control" placeholder="District" name="district">
  52.                 </div>
  53.             </div>
  54.  
  55.             <br>
  56.             <div class="form-row">
  57.                 <div class="col">
  58.                     <input type="text" class="form-control" placeholder="Postal Code" name="postal_code">
  59.                 </div>
  60.                 <div class="col">
  61.                     <select class="form-control" id="exampleFormControlSelect1" name="imei">
  62.                         <option disabled="True"> IMEI</option>
  63.                         {% for data in available_imei %}
  64.                             <option> {{ data.imei }}</option>
  65.                         {% endfor %}
  66.                     </select>
  67.                 </div>
  68.  
  69.  
  70.             </div>
  71.  
  72.             <br>
  73.             <div class="form-row">
  74.                 <div class="col">
  75.                     <input type="date" class="form-control" placeholder="Date" name="date_of_sell">
  76.                 </div>
  77.                 <div class="col">
  78.                     Employee ID: {{ employee_id }}
  79.                 </div>
  80.             </div>
  81.             <br>
  82.             <div class="text-center">
  83.                 <button type="submit" class="btn btn-primary">Submit</button>
  84.             </div>
  85.  
  86.         </form>
  87.     </div>
  88. </div>
  89.  
  90.  
  91. {% if logged_flag == 1 %}
  92.     {% if messages %}
  93.         <div class="toast" role="alert" aria-live="assertive" aria-atomic="true" data-delay="5000">
  94.             <div class="toast-header">
  95.                 <strong class="mr-auto">Welcome</strong>
  96.                 <button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
  97.                     <span aria-hidden="true">&times;</span>
  98.                 </button>
  99.             </div>
  100.             <div class="toast-body">
  101.                 {% for message in messages %}
  102.                     <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
  103.                 {% endfor %}
  104.             </div>
  105.         </div>
  106.     {% endif %}
  107. {% endif %}
  108.  
  109.  
  110.  
  111.  
  112. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  113. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
  114. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
  115.  
  116. <script>
  117.     if (window.history.replaceState) {
  118.         window.history.replaceState(null, null, window.location.href);
  119.     }
  120. </script>
  121.  
  122. <script>
  123.     $(document).ready(function () {
  124.         $('.toast').toast('show');
  125.     });
  126. </script>
  127. </body>
  128. </html>
Advertisement
Add Comment
Please, Sign In to add comment