A web blog and personal homepage engine written in Go.
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.

54 lines
1.5 KiB

  1. {{ define "title" }}Contact Me{{ end }}
  2. {{ define "content" }}
  3. <h1>Contact Me</h1>
  4. <div class="card">
  5. <div class="card-body">
  6. <p>
  7. Fill out this form to send an e-mail to the site owner.
  8. </p>
  9. <form action="/contact" method="POST">
  10. {{ CSRF }}
  11. <div class="form-row">
  12. <div class="form-group col-md-6">
  13. <label for="name">Your name:</label>
  14. <input type="text" class="form-control" id="name" placeholder="Anonymous" value="{{ .V.name }}">
  15. </div>
  16. <div class="form-group col-md-6">
  17. <label for="name">Your email:</label>
  18. <input type="email" class="form-control" id="email" placeholder="name@example.com" value="{{ .V.email }}">
  19. <small id="email-help" class="form-text text-muted">
  20. If you want a response; optional.
  21. </small>
  22. </div>
  23. </div>
  24. <div class="form-row">
  25. <div class="form-group col-12">
  26. <label for="subject">Subject</label>
  27. <input type="text" class="form-control" name="subject" placeholder="No Subject">
  28. </div>
  29. </div>
  30. <div class="form-row">
  31. <div class="form-group col-12">
  32. <label for="message" title="Required">Message<span class="text-danger">*</span></label>
  33. <textarea cols="80" rows="10" class="form-control" name="message" id="message" required="required"></textarea>
  34. </div>
  35. </div>
  36. <div class="form-row">
  37. <div class="form-group col-12">
  38. <button type="submit" class="btn btn-primary">Send</button>
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. {{ end }}