Advertisement
Guest User

Untitled

a guest
Apr 8th, 2022
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5. <script type="text/javascript" src="{{ url_for('static', filename='js/jquery164.js') }}"></script>
  6.  
  7. <style>
  8. input[type=checkbox] {
  9. /* Double-sized Checkboxes */
  10. -ms-transform: scale(2);
  11. /* IE */
  12. -moz-transform: scale(2);
  13. /* FF */
  14. -webkit-transform: scale(2);
  15. /* Safari and Chrome */
  16. -o-transform: scale(2);
  17. /* Opera */
  18. transform: scale(2);
  19. padding: 10px;
  20. }
  21.  
  22. /* Might want to wrap a span around your checkbox text */
  23. .checkboxtext {
  24. /* Checkbox text */
  25. font-size: 110%;
  26. display: inline;
  27. }
  28. </style>
  29. </head>
  30.  
  31. <body>
  32. <h1>Hello! You are here, {{ email }} </h1>
  33. <button><a href={{ '/protected_area' }}>Go Back</a></button>
  34.  
  35.  
  36. <form id="form" action="{{ url_for("admin")}}" method="POST">
  37. <ol>
  38. {% for entry in allderos %}
  39.  
  40. <li>
  41. <p>
  42. entry0 {{ entry[0] }} , entry1 {{ entry[1] }} , entry2 {{ entry[2] }} ,
  43. entry3 {{ entry[3] }} , entry4 {{ entry[4] }} , entry5 {{ entry[5] }} ,
  44. entry6 {{ entry[6] }} , entry7 {{ entry[7] }} , entry8 {{ entry[8] }} ,
  45. entry9 {{ entry[9] }} , entry10 {{ entry[10] }} ,entry11 {{ entry[11] }} ,
  46. entry12 {{ entry[12] }}, entry 13 {{ entry[13] }}
  47.  
  48. <input type="text" name="hello" />
  49.  
  50. </p>
  51. <p>
  52. <input id="approvedCheck" type="checkbox" value={{ entry[13] }} name="approved"/>APPROVE
  53. </p>
  54.  
  55. <p>
  56. <input id="deniedCheck" type="checkbox" value={{ entry[13] }} name="denied"/>DENY
  57. </p>
  58. </li>
  59. {% endfor %}
  60. </ol>
  61.  
  62. <button type="submit" >Submit</button>
  63. </form>
  64.  
  65. <script type="text/javascript">
  66. $('#approvedCheck').change(function () {
  67. if ($(this).attr("checked")) {
  68. $('#deniedCheck').attr('disabled', true);
  69. } else {
  70. $('#deniedCheck').attr('disabled', false);
  71. }
  72. });
  73.  
  74.  
  75. $('#deniedCheck').change(function () {
  76. if ($(this).attr("checked")) {
  77. $('#approvedCheck').attr('disabled', true);
  78. } else {
  79. $('#approvedCheck').attr('disabled', false);
  80. }
  81. });
  82. </script>
  83.  
  84.  
  85.  
  86.  
  87. </body>
  88.  
  89. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement