modal.ejs 4.5 KB

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