12345678910111213141516171819202122232425262728293031323334 |
- {{ define "new.html" }}
- {{ block "content" . }}
- <form action="/contacts/new" method="post">
- <fieldset>
- <legend>Contact Values</legend>
- <p>
- <label for="email">Email</label>
- <input name="email" id="email" type="email" placeholder="Email" value="{{ .Email }}">
- <span class="error">{{ .Errors.email }}</span>
- </p>
- <p>
- <label for="first_name">First Name</label>
- <input name="first_name" id="first_name" type="text" placeholder="First Name" value="{{ .First }}">
- <span class="error">{{ .Errors.First }}</span>
- </p>
- <p>
- <label for="last_name">Last Name</label>
- <input name="last_name" id="last_name" type="text" placeholder="Last Name" value="{{ .Last }}">
- <span class="error">{{ .Errors.Last }}</span>
- </p>
- <p>
- <label for="phone">Phone</label>
- <input name="phone" id="phone" type="text" placeholder="Phone" value="{{ .Phone }}">
- <span class="error">{{ .Errors.Phone }}</span>
- </p>
- <button>Save</button>
- </fieldset>
- </form>
- <p>
- <a href="/contacts">Back</a>
- </p>
- {{ end }}
- {{ end }}
|