modal.ejs 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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="editSubIngredientsContainer">
  49. <div id="editSubAllIng"></div>
  50. <div id="verticalBorder"></div>
  51. <div id="editSubCurrentIng"></div>
  52. </div>
  53. <button id="submitEditSubIngredients" class="button">CONFIRM</button>
  54. <template id="selectedSubIngredient">
  55. <div class="selectedIngredient">
  56. <div>
  57. <p></p>
  58. <button class="newOrderRemove">REMOVE</button>
  59. </div>
  60. <input type="number" min="0" step="0.01" placeholder="QUANTITY">
  61. </div>
  62. </template>
  63. </div>
  64. </div>
  65. </div>
  66. </div>