config_panel.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <style>
  2. {{> styles/all.css }}
  3. </style>
  4. <script type="text/javascript">
  5. {{> scripts/smtp-chide.js }}
  6. </script>
  7. <div class="cx-newsletter-container">
  8. {{$ toast_place }}
  9. <form action="" method="post">
  10. <div class="section">
  11. <div class="group center">
  12. <span class="title">
  13. {{? cx-newsletter control panel }}
  14. </span>
  15. </div>
  16. <div class="separator"></div>
  17. <div class="group">
  18. <label>
  19. {{? Setup E-Mail address from which mails would being send }}
  20. </label>
  21. <input
  22. type="email"
  23. name="source_address"
  24. placeholder="[email protected]"
  25. value="{{$ source_address }}"
  26. >
  27. </div>
  28. <div class="group">
  29. <label>
  30. {{? Setup E-Mail address where users would to reply }}
  31. </label>
  32. <input
  33. type="email"
  34. name="reply_to_address"
  35. placeholder="[email protected]"
  36. value="{{$ reply_to_address }}"
  37. >
  38. </div>
  39. <div class="group">
  40. <label>
  41. {{? How many E-Mails would be send in one transaction }}
  42. </label>
  43. <input
  44. type="number"
  45. name="email_count"
  46. placeholder="50"
  47. value="{{$ email_count }}"
  48. >
  49. </div>
  50. <div class="group">
  51. <label>
  52. {{? How many SMS-es would be send in one transaction }}
  53. </label>
  54. <input
  55. type="number"
  56. name="sms_count"
  57. placeholder="10"
  58. value="{{$ sms_count }}"
  59. >
  60. </div>
  61. <div class="group">
  62. <label>
  63. {{? Which Api Key to be used to access by the SMS gate }}
  64. </label>
  65. <input
  66. type="text"
  67. name="apikey"
  68. placeholder="TEST_APIKEY_TEST_APIKEY"
  69. value="{{$ apikey }}"
  70. >
  71. </div>
  72. <div class="group">
  73. <label>
  74. {{? Use custom SMTP server instreat of default wp_mail }}
  75. </label>
  76. <input
  77. type="checkbox"
  78. name="custom_smtp"
  79. class="custom-smtp-checkbox"
  80. {{$ custom_smtp_checked }}
  81. >
  82. </div>
  83. <span
  84. class="custom-smtp-form group-selector"
  85. style="display: none;"
  86. >
  87. <div class="group">
  88. <label>
  89. {{? SMTP server address }}
  90. </label>
  91. <input
  92. type="text"
  93. name="smtp_address"
  94. placeholder="smtp.example.com"
  95. value="{{$ smtp_address }}"
  96. >
  97. </div>
  98. <div class="group">
  99. <label>
  100. {{? SMTP server port }}
  101. </label>
  102. <input
  103. type="number"
  104. name="smtp_port"
  105. placeholder="587"
  106. value="{{$ smtp_port }}"
  107. >
  108. </div>
  109. <div class="group">
  110. <label>
  111. {{? SMTP server user name }}
  112. </label>
  113. <input
  114. type="text"
  115. name="smtp_user"
  116. placeholder="[email protected]"
  117. value="{{$ smtp_user }}"
  118. >
  119. </div>
  120. <div class="group">
  121. <label>
  122. {{? SMTP server password }}
  123. </label>
  124. <input
  125. type="password"
  126. name="smtp_password"
  127. placeholder="qwerty1234"
  128. value="{{$ smtp_password }}"
  129. >
  130. </div>
  131. </span>
  132. <div class="group center">
  133. <input
  134. type="submit"
  135. name="save"
  136. value="{{? Save }}"
  137. >
  138. </div>
  139. </div>
  140. </form>
  141. </div>