modal.ejs 5.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. <h3>CREATE WITH:</h3>
  31. <button id="newMerchantSquareButton" type="button">
  32. <svg aria-hidden="true" viewBox="0 0 44 44" width="24" height="24">
  33. <path fill="currentColor" d="M36.65 0H7.354A7.354 7.354 0 0 0 0 7.354V36.65a7.354 7.354 0 0 0 7.354 7.354H36.65a7.353 7.353 0 0 0 7.354-7.354V7.354A7.352 7.352 0 0 0 36.65 0zm-.646 33.685a2.32 2.32 0 0 1-2.32 2.32H10.325a2.32 2.32 0 0 1-2.321-2.32v-23.36a2.32 2.32 0 0 1 2.321-2.321h23.359a2.32 2.32 0 0 1 2.32 2.321v23.36z"></path>
  34. <path fill="currentColor" d="M17.333 28.003c-.736 0-1.332-.6-1.332-1.339V17.34c0-.739.596-1.339 1.332-1.339h9.338c.738 0 1.332.6 1.332 1.339v9.324c0 .739-.594 1.339-1.332 1.339h-9.338z"></path>
  35. </svg>
  36. <svg aria-hidden="true" viewBox="0 0 66 22" width="75" height="24">
  37. <path d="M11.2 10c-.7-.2-1.3-.4-1.8-.6C8.4 9 8 8.4 8 7.6c0-1.5 1.5-2.2 3-2.2 1.4 0 2.6.6 3.5 1.6l.1.1 1.2-.9-.1-.1c-1.1-1.4-2.7-2.2-4.6-2.2-1.2 0-2.4.3-3.2.9-1 .8-1.5 1.7-1.5 2.9 0 2.7 2.6 3.4 4.6 3.9 2.1.6 3.4 1 3.4 2.6s-1.3 2.6-3.2 2.6c-1 0-2.8-.3-3.9-2l-.1-.1-1.2.9v.1c1.1 1.6 2.9 2.5 5.1 2.5 2.9 0 4.9-1.6 4.9-4.1 0-2.8-2.7-3.5-4.8-4.1z" fill="currentColor"></path>
  38. <path d="M25.5 9.5V8h1.4v14h-1.4v-5.5c-.8 1.1-2 1.7-3.4 1.7-2.7 0-4.5-2.1-4.5-5.2s1.9-5.2 4.5-5.2c1.4-.1 2.6.6 3.4 1.7zM19.1 13c0 2.9 1.6 3.9 3.2 3.9 2 0 3.3-1.5 3.3-3.9s-1.3-3.9-3.3-3.9c-2.4 0-3.2 2-3.2 3.9z" fill-rule="evenodd" clip-rule="evenodd" fill="currentColor"></path>
  39. <path d="M36.2 8v5.5c0 1.9-1.3 3.3-3.2 3.3-1.5 0-2.3-.9-2.3-2.8V8h-1.4v6.4c0 2.4 1.3 3.8 3.5 3.8 1.4 0 2.5-.6 3.3-1.6V18h1.4V8h-1.3z" fill="currentColor"></path>
  40. <path d="M40.3 9c1-.8 2.4-1.3 3.9-1.3 2.2 0 3.6 1.1 3.6 3V18h-1.4v-1.1c-.7.9-1.7 1.3-3.1 1.3-2.2 0-3.5-1.2-3.5-3.1 0-2.5 2.3-2.8 3.3-3 .2 0 .3-.1.5-.1 1.4-.2 2.7-.4 2.7-1.6 0-1.3-1.7-1.4-2.2-1.4-.9 0-2.2.3-3.1 1v.2L40.3 9zm.9 6.1c0 1.6 1.5 1.8 2.2 1.8 1.4 0 2.9-.8 2.9-2.9v-1.4c-.7.4-1.7.6-2.5.8l-.4.1c-1.5.1-2.2.5-2.2 1.6z" fill-rule="evenodd" clip-rule="evenodd" fill="currentColor"></path>
  41. <path d="M55.9 8.2c-.3-.2-.9-.4-1.4-.4-1.1 0-2.2.6-2.8 1.5V8h-1.4v10h1.4v-5.4c0-2.4 1.3-3.4 2.7-3.4.4 0 .8.1 1.1.2l.1.1.3-1.3z" fill="currentColor"></path>
  42. <path d="M56.3 13c0-3.1 1.9-5.3 4.7-5.3 2.7 0 4.5 1.9 4.5 4.7V13.2h-7.7c0 2.2 1.4 3.6 3.4 3.6 1.2 0 2.2-.5 2.8-1.3l.1-.1 1 .9-.1.1c-.7.8-1.9 1.8-3.9 1.8-2.9 0-4.8-2.1-4.8-5.2zm4.6-3.9c-1.7 0-2.9 1.1-3.1 2.9H64c-.1-1.4-1-2.9-3.1-2.9z" fill-rule="evenodd" clip-rule="evenodd" fill="currentColor"></path>
  43. </svg>
  44. </button>
  45. <input type="submit" class="button" value="NO POS">
  46. </form>
  47. <div id="modalConfirm" style="display:none;">
  48. <svg width="50" height="50" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  49. <circle cx="12" cy="12" r="10"></circle>
  50. <line x1="12" y1="8" x2="12" y2="12"></line>
  51. <line x1="12" y1="16" x2="12.01" y2="16"></line>
  52. </svg>
  53. <p></p>
  54. <div class="buttonBox">
  55. <button id="modalConfirmNoButton" class="button">CANCEL</button>
  56. <button id="modalConfirmButton" class="button">YES</button>
  57. </div>
  58. </div>
  59. <div id="modalSquareLocations" style="display:none">
  60. <h2>CHOOSE A LOCATION</h2>
  61. <div id="squareLocationsButtons"></div>
  62. <button id="squareLocationsCancel" class="button">CANCEL</button>
  63. </div>
  64. </div>
  65. </div>
  66. </div>