-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathnew.html
39 lines (34 loc) · 1.4 KB
/
new.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% 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="email" placeholder="Email" value="{{ contact.email or '' }}">
<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 or '' }}">
<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 or '' }}">
<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 or '' }}">
<span class="error">{{ contact.errors['phone'] }}</span>
</p>
</div>
<button>Save</button>
</fieldset>
</form>
<p>
<a href="/contacts">Back</a>
</p>
{% endblock %}