You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

contentSection.vue 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <template>
  2. <div class="container pt-5">
  3. <div class="row mb-8">
  4. <div class="col-md-6">
  5. <h3>Mooikloof Office Park</h3>
  6. <p>
  7. The cream of the crop, no costs were spared on the finishing touches of this beautiful
  8. office. This 160m2 office is ideally situated in Pretoria East in the hub of business
  9. expansion for Pretoria. Two superb, air-conditioned ground floor units divided only by
  10. glass and completed with two small recording studios. The Space is currently used for
  11. corporate boardroom and training centre functions and can accommodate up to 25 delegates.
  12. Stunning finishes y interior designer complete the unit with style and class. The perfect
  13. address and office for the established professional for the training centre of your
  14. dreams!
  15. </p>
  16. <p><strong>View by Appointment only!</strong></p>
  17. <br />
  18. <p></p>
  19. To arrange a viewing contact Mynie:
  20. <div class="col-md-4">
  21. <a href="mailto:info@univateproperties.co.za">info@univateproperties.co.za</a><br />
  22. <a href="tel:0124921238">+27 (0) 12 492 1238</a>
  23. </div>
  24. </div>
  25. <div class="col-md-6">
  26. <form>
  27. <div class="form-group row">
  28. <div class="form-group col-md-6">
  29. <input
  30. type="text"
  31. name="name"
  32. class="form-control"
  33. id="Unit"
  34. placeholder="Unit"
  35. data-rule="minlen:4"
  36. v-model="Unit"
  37. />
  38. <div class="validation"></div>
  39. </div>
  40. <div class="form-group col-md-6">
  41. <input
  42. type="text"
  43. name="name"
  44. class="form-control"
  45. id="Price"
  46. placeholder="Price"
  47. data-rule="minlen:4"
  48. v-model="Price"
  49. />
  50. <div class="validation"></div>
  51. </div>
  52. <div class="form-group col-md-6">
  53. <input
  54. type="text"
  55. name="name"
  56. class="form-control"
  57. id="Size"
  58. placeholder="Size"
  59. data-rule="minlen:4"
  60. v-model="Size"
  61. />
  62. <div class="validation"></div>
  63. </div>
  64. <div class="form-group col-md-6">
  65. <input
  66. type="text"
  67. name="name"
  68. class="form-control"
  69. id="Suburb"
  70. placeholder="Suburb"
  71. data-rule="minlen:4"
  72. v-model="Suburb"
  73. />
  74. <div class="validation"></div>
  75. </div>
  76. <div class="form-group col-md-12">
  77. <input
  78. type="text"
  79. name="name"
  80. class="form-control"
  81. id="Name"
  82. placeholder="Name"
  83. data-rule="minlen:4"
  84. v-model="Name"
  85. />
  86. <div class="validation"></div>
  87. </div>
  88. <div class="form-group col-md-12">
  89. <input
  90. type="text"
  91. name="name"
  92. class="form-control"
  93. id="ContactNumber"
  94. placeholder="ContactNumber"
  95. data-rule="minlen:4"
  96. v-model="ContactNumber"
  97. />
  98. <div class="validation"></div>
  99. </div>
  100. <div class="form-group col-md-12">
  101. <input
  102. type="text"
  103. name="name"
  104. class="form-control"
  105. id="Email"
  106. placeholder="Email"
  107. data-rule="minlen:4"
  108. v-model="email"
  109. />
  110. <div class="validation"></div>
  111. </div>
  112. </div>
  113. <div class="text-center">
  114. <button class="btn-solid-blue" @click="sendMail()">ENQUIRE NOW</button>
  115. </div>
  116. <div v-if="boolSent">
  117. <alert :text="alertMsg" :type="'SUCCESS'" />
  118. </div>
  119. </form>
  120. </div>
  121. </div>
  122. </div>
  123. </template>
  124. <script>
  125. /* eslint-disable */
  126. import axios from "axios";
  127. import alert from "../../../shared/alert";
  128. export default {
  129. components: {
  130. alert
  131. },
  132. data() {
  133. return {
  134. alertMsg: "Sent! You can expect a reply soon!",
  135. name: null,
  136. email: null,
  137. phone: null,
  138. property: null,
  139. message: null,
  140. boolSent: false
  141. };
  142. },
  143. mounted() {
  144. this.boolSent = false;
  145. },
  146. methods: {
  147. async sendMail() {
  148. var mailObj = {
  149. toAddress: "lenes@provision-sa.com",
  150. fromAddress: "jlouw365@gmail.com",
  151. name: this.name,
  152. email: this.email,
  153. phone: this.phone,
  154. property: this.property,
  155. message: this.message
  156. };
  157. const response = await axios.post("/api/mail/1", mailObj);
  158. if (response.status === 200) {
  159. this.boolSent = true;
  160. } else {
  161. console.log("Error");
  162. }
  163. },
  164. countDownChanged(dismissCountDown) {
  165. this.dismissCountDown = dismissCountDown;
  166. }
  167. }
  168. };
  169. </script>
  170. <style lang="scss" scoped></style>