new.gohtml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {{define "new.html"}}
  2. {{ block "content" . }}
  3. <form action="/contacts/new" method="post">
  4. <fieldset>
  5. <legend>Contact Values</legend>
  6. <div class="table rows">
  7. <p>
  8. <label for="email">Email</label>
  9. <input name="email" id="email" type="text" placeholder="Email" value="{{ .contact.Email }}">
  10. {{/* <span class="error">{{ .contact.errors.email }}</span>*/}}
  11. </p>
  12. <p>
  13. <label for="first_name">First Name</label>
  14. <input name="first_name" id="first_name" type="text" placeholder="First Name" value="{{ .contact.First }}">
  15. {{/* <span class="error">{{ .contact.errors.first }}</span>*/}}
  16. </p>
  17. <p>
  18. <label for="last_name">Last Name</label>
  19. <input name="last_name" id="last_name" type="text" placeholder="Last Name" value="{{ .contact.Last }}">
  20. {{/* <span class="error">{{ .contact.errors.last }}</span>*/}}
  21. </p>
  22. <p>
  23. <label for="phone">Phone</label>
  24. <input name="phone" id="phone" type="text" placeholder="Phone" value="{{ .contact.Phone }}">
  25. {{/* <span class="error">{{ .contact.errors.phone }}</span>*/}}
  26. </p>
  27. </div>
  28. <button>Save</button>
  29. </fieldset>
  30. </form>
  31. <p><a href="/contacts">Back</a></p>
  32. {{ end }}
  33. {{end}}