contact.ejs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div id="contact" v-cloak>
  2. <div class="container">
  3. <h1 class="text-center">Get in touch</h1>
  4. <div class="contact-form" v-if="!cloudSuccess">
  5. <p class="text-center">Have a question for us? Maybe some feedback? We love talking to users about NEW_APP_NAME, and we're happy to answer questions about our pricing, roadmap, or business solutions. Send us a note and we'll get back to you as soon as possible.</p>
  6. <hr/>
  7. <ajax-form action="deliverContactFormMessage" :syncing.sync="syncing" :cloud-error.sync="cloudError" @submitted="submittedForm()" :handle-parsing="handleParsingForm">
  8. <div class="form-group">
  9. <label for="full-name">Name</label>
  10. <input class="form-control" id="full-name" name="full-name" type="text" :class="[formErrors.fullName ? 'is-invalid' : '']" v-model.trim="formData.fullName" placeholder="Sturgis P. Sturgeon" autofocus>
  11. <div class="invalid-feedback" v-if="formErrors.fullName">Please let us know what to call you.</div>
  12. </div>
  13. <div class="form-group">
  14. <label for="email-address">Email address</label>
  15. <input class="form-control" id="email-address" name="email-address" type="email" :class="[formErrors.emailAddress ? 'is-invalid' : '']" v-model.trim="formData.emailAddress" placeholder="sturgeon@example.com">
  16. <div class="invalid-feedback" v-if="formErrors.emailAddress">Please enter a valid email address.</div>
  17. </div>
  18. <div class="form-group">
  19. <label for="topic">Topic</label>
  20. <input class="form-control" id="topic" name="topic" type="text" :class="[formErrors.topic ? 'is-invalid' : '']" v-model.trim="formData.topic" placeholder="Pricing question">
  21. <div class="invalid-feedback" v-if="formErrors.topic">Please choose a topic for your message.</div>
  22. </div>
  23. <div class="form-group">
  24. <label for="message">Message</label>
  25. <textarea class="form-control" id="message" name="message" :class="[formErrors.message ? 'is-invalid' : '']" v-model.trim="formData.message" placeholder="What is the difference between the &quot;Individual&quot; plan and the &quot;Professional&quot; plan?"></textarea>
  26. <div class="invalid-feedback" v-if="formErrors.message">Message cannot be empty.</div>
  27. </div>
  28. <p class="text-danger" v-if="cloudError"><small>An error occured while processing your request. Please check your information and try again, or <a href="/contact">contact support</a> if the error persists.</small></p>
  29. <div class="form-group">
  30. <ajax-button type="submit" :syncing="syncing" class="btn btn-dark btn-lg btn-block">Send message</ajax-button>
  31. </div>
  32. </ajax-form>
  33. </div>
  34. <div class="success-message" v-if="cloudSuccess">
  35. <p class="text-center">Thanks for reaching out!</p>
  36. <hr/>
  37. <p>We have received your message, and someone from our team will get back to you soon.</p>
  38. </div>
  39. </div>
  40. </div>
  41. <%- /* Expose locals as `window.SAILS_LOCALS` :: */ exposeLocalsToBrowser() %>