Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. %extends 'layouts.html'%}
  2. {% block body %}
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <title>Schedule Employee's</title>
  7. <meta charset="utf-8">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
  10. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
  11. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  12. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
  13. </head>
  14. <body>
  15.  
  16. <div class="container">
  17. <h2>Schedule Employee's</h2>
  18. <form action = "/schedule" method = "POST">
  19. <table class="table">
  20. <thead>
  21. <tr>
  22. <th>Name</th>
  23. <th>Monday</th>
  24. <th>Tuesday</th>
  25. <th>Wednesday</th>
  26. <th>Thursday</th>
  27. <th>Friday</th>
  28. <th>Saturday</th>
  29. <th>Sunday</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33.  
  34. {% for x in employee%}
  35. <tr>
  36. <td >&nbsp;<input type='text'name = "Name" value={{x[0]}} />
  37. <td >&nbsp;<input type='text'name = "Monday" value=''/>
  38. <td id = "Tuesday">&nbsp;<input type='text'name = "Tuesday" value=''/>
  39. <td id = "Wednesday">&nbsp;<input type='text'name = "Wednesday" value=''/>
  40. <td id = "Thursday">&nbsp;<input type='text' name = "Thursday"value=''/>
  41. <td id = "Friday">&nbsp;<input type='text'name = "Friday" value=''/>
  42. <td id = "Saturday">&nbsp;<input type='text'name = "Saturday" value=''/>
  43. <td id = "Sunday">&nbsp;<input type='text' name = "Sunday" value=''/>
  44.  
  45.  
  46.  
  47.  
  48. </tr>
  49. {% endfor %}
  50. </tbody>
  51. </table>
  52. </div>
  53. <input class="btn btn-primary" type="submit" value="Submit">
  54.  
  55.  
  56.  
  57. </body>
  58.  
  59. </form>
  60.  
  61.  
  62. <style>
  63. input {
  64. width: 50%
  65. }
  66.  
  67.  
  68.  
  69. </style>
  70. </html>
  71.  
  72. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement