modal.ejs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <div id="modal" class="modal" style="display:none;">
  2. <div class="modalBox">
  3. <svg id="modalClose" width="35" height="35" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  4. <line x1="18" y1="6" x2="6" y2="18"></line>
  5. <line x1="6" y1="6" x2="18" y2="18"></line>
  6. </svg>
  7. <div id="modalContent">
  8. <form id="modalFeedback" style="display:none;" method="post" action="/feedback">
  9. <label>Title:
  10. <input id="feedbackTitle" required>
  11. </label>
  12. <textarea id="feedbackContent" placeholder="Your Feedback..." rows="10" cols="50"></textarea>
  13. <input class="button" type="submit" value="SUBMIT">
  14. </form>
  15. <form id="modalNewMerchant" style="display:none;" method="post">
  16. <h2>NEW MERCHANT</h2>
  17. <label>NAME:
  18. <input type="text" id="addMerchantName" required>
  19. </label>
  20. <input type="submit" class="button" value="SUBMIT">
  21. </form>
  22. <div id="modalConfirm" style="display:none;">
  23. <svg width="50" height="50" viewBox="0 0 24 24" fill="none" stroke="red" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  24. <circle cx="12" cy="12" r="10"></circle>
  25. <line x1="12" y1="8" x2="12" y2="12"></line>
  26. <line x1="12" y1="16" x2="12.01" y2="16"></line>
  27. </svg>
  28. <p></p>
  29. <div class="buttonBox">
  30. <button id="modalConfirmNoButton" class="button">CANCEL</button>
  31. <button id="modalConfirmButton" class="dangerButton">DELETE</button>
  32. </div>
  33. </div>
  34. <div id="modalSquareLocations" style="display:none">
  35. <h2 id="squareLocationsTitle">CHOOSE A LOCATION</h2>
  36. <div id="squareLocationsButtons"></div>
  37. <button id="squareLocationsCancel" class="dangerButton">CANCEL</button>
  38. </div>
  39. <div id="modalEditSubIngredients" style="display:none">
  40. <h2>EDIT SUB INGREDIENTS</h2>
  41. <div id="editSubIngredientsHeaders">
  42. <h3>AVAILABLE</h3>
  43. <h3>SUB-INGREDIENTS</h3>
  44. </div>
  45. <div id="editSubIngredientsContainer">
  46. <div id="editSubAllIng"></div>
  47. <div id="editSubCurrentIng"></div>
  48. </div>
  49. <div class="buttonBox">
  50. <button id="cancelEditSubIngredients" class="dangerButton">CANCEL</button>
  51. <button id="submitEditSubIngredients" class="button">CONFIRM</button>
  52. </div>
  53. <template id="selectedSubIngredient">
  54. <div class="selectedIngredient">
  55. <div>
  56. <p></p>
  57. <button class="newOrderRemove">REMOVE</button>
  58. </div>
  59. <div>
  60. <div>
  61. <input type="number" min="0" step="0.01">
  62. <select></select>
  63. </div>
  64. <p>PER</p>
  65. <div class="editSubRightRight">
  66. <input type="number" min="0" step="0.01">
  67. <select></select>
  68. </div>
  69. </div>
  70. </div>
  71. </template>
  72. </div>
  73. <div id="modalCircularReference" style="display:none">
  74. <h2></h2>
  75. <div></div>
  76. <button id="circularReferenceButton" class="button">OK</button>
  77. </div>
  78. </div>
  79. </div>
  80. </div>