-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.html
68 lines (35 loc) · 1.57 KB
/
edit.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{% extends "layout.html" %}
{% block body %}
<main class="row">
<div class="col-lg-6 col-md-6 col-sm-6">
<h2>Edit a Customer</h2>
<form action="/edit" method="post">
{% if customer is defined %}
<label for="CustomerID">Customer ID</label>
<input type="text" name="CustomerID" value="{{customer[0]}}" class="form-control" readonly>
<br>
<label for="fname">First Name</label>
<input type="text" name="fname" value="{{customer[1]}}" class="form-control">
<br>
<label for="lname">Last Name</label>
<input type="text" name="lname" value="{{customer[2]}}" class="form-control">
<br>
<label for="ZipCode">Zip Code</label>
<input type="text" name="ZipCode" value="{{customer[3]}}" class="form-control">
<br>
<label for="Telephone">Telephone</label>
<input type="text" name="Telephone" value="{{customer[4]}}" class="form-control">
<br>
<label for="email">Email</label>
<input type="text" name="email" value="{{customer[5]}}" class="form-control">
<br>
<label for="Category">Category</label>
<input type="text" name="Category" value="{{customer[6]}}" class="form-control">
<br>
{% endif %}
</select>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</main>
{% endblock %}