1234567891011121314151617181920212223242526272829303132333435363738394041 |
- {{define "new.html"}}
- {% extends 'layout.html' %}
- {{ block "content" . }}
- <form action="/contacts/new" method="post">
- <fieldset>
- <legend>Contact Values</legend>
- <div class="table rows">
- <p>
- <label for="email">Email</label>
- <input name="email" id="email" type="text" placeholder="Email" value="{{ .contact.email }}">
- <span class="error">{{ .contact.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="{{ .contact.first }}">
- <span class="error">{{ .contact.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="{{ .contact.last }}">
- <span class="error">{{ .contact.errors.last }}</span>
- </p>
- <p>
- <label for="phone">Phone</label>
- <input name="phone" id="phone" type="text" placeholder="Phone" value="{{ .contact.phone }}">
- <span class="error">{{ .contact.errors.phone }}</span>
- </p>
- </div>
- <button>Save</button>
- </fieldset>
- </form>
- <p>
- <a href="/contacts">Back</a>
- </p>
- {{ end }}
- {{end}}
|