contact.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <div class="container" id="contact">
  2. <div class="row">
  3. <div class="col-md-8">
  4. <section>
  5. {{ .Content }}
  6. {{ if isset .Site.Params "formspree_action" }}
  7. <div class="heading">
  8. <h3>{{ i18n "contactForm" }}</h3>
  9. </div>
  10. <div id="contact-message"></div>
  11. <form {{ with .Site.Params.contact_form_ajax }}class="contact-form-ajax"{{ else }}{{ end }} method="post" action="{{ .Site.Params.formspree_action }}">
  12. <div class="row">
  13. <div class="col-sm-6">
  14. <div class="form-group">
  15. <label for="name">{{ i18n "contactName" }}</label>
  16. <input type="text" class="form-control" name="name" id="name" required>
  17. </div>
  18. </div>
  19. <div class="col-sm-6">
  20. <div class="form-group">
  21. <label for="email">{{ i18n "contactMail" }}</label>
  22. <input type="email" autocomplete="email" class="form-control" name="email" id="email" required>
  23. </div>
  24. </div>
  25. <div class="col-sm-12">
  26. <div class="form-group">
  27. <label for="message">{{ i18n "contactMessage" }}</label>
  28. <textarea id="message" class="form-control" name="message" required></textarea>
  29. </div>
  30. </div>
  31. <div class="col-sm-12 text-center">
  32. <button type="submit" class="btn btn-template-main"><i class="far fa-envelope"></i>{{ i18n "contactSend" }}</button>
  33. </div>
  34. </div>
  35. <!-- /.row -->
  36. </form>
  37. {{ end }}
  38. </section>
  39. </div>
  40. <div class="col-md-4">
  41. {{ if isset .Site.Params "address" }}
  42. <section>
  43. <h3 class="text-uppercase"> {{ i18n "contactAddrTitle" }}</h3>
  44. {{ .Site.Params.address | safeHTML }}
  45. </section>
  46. {{ end }}
  47. </div>
  48. </div>
  49. <!-- /.row -->
  50. </div>
  51. {{ partial "map.html" . }}