modal.ejs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <label id="" style="display:none;">
  12. <input id="spreadsheetRecipeIsSquare" type="checkbox">Square Items?
  13. </label>
  14. <input type="hidden" name="type">
  15. <input class="button" type="submit" value="SUBMIT">
  16. <a id="spreadsheetDownload">download template</a>
  17. </form>
  18. <form id="modalFeedback" style="display:none;" method="post" action="/feedback">
  19. <label>Title:
  20. <input id="feedbackTitle" required>
  21. </label>
  22. <textarea id="feedbackContent" placeholder="Your Feedback..." rows="10" cols="50"></textarea>
  23. <input class="button" type="submit" value="SUBMIT">
  24. </form>
  25. <form id="modalNewMerchant" style="display:none;" method="post">
  26. <h2>NEW MERCHANT</h2>
  27. <label>NAME:
  28. <input type="text" id="addMerchantName" required>
  29. </label>
  30. <input type="submit" class="button" value="SUBMIT">
  31. </form>
  32. <div id="modalConfirm" style="display:none;">
  33. <svg width="50" height="50" viewBox="0 0 24 24" fill="none" stroke="red" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  34. <circle cx="12" cy="12" r="10"></circle>
  35. <line x1="12" y1="8" x2="12" y2="12"></line>
  36. <line x1="12" y1="16" x2="12.01" y2="16"></line>
  37. </svg>
  38. <p></p>
  39. <div class="buttonBox">
  40. <button id="modalConfirmNoButton" class="button">CANCEL</button>
  41. <button id="modalConfirmButton" class="dangerButton">DELETE</button>
  42. </div>
  43. </div>
  44. <div id="modalSquareLocations" style="display:none">
  45. <h2>CHOOSE A LOCATION</h2>
  46. <div id="squareLocationsButtons"></div>
  47. <button id="squareLocationsCancel" class="dangerButton">CANCEL</button>
  48. </div>
  49. </div>
  50. </div>
  51. </div>