-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathEdit.asp
79 lines (67 loc) · 2.99 KB
/
Edit.asp
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
69
70
71
72
73
74
75
76
77
78
79
<h2><%= H(Model.Title) %></h2>
<%= HTML.FormTag("Products", "EditPost", empty, empty) %>
<%= HTML.Hidden("nonce", HTMLSecurity.GetAntiCSRFToken("ProductEditForm")) %>
<%= HTML.Hidden("Id", Model.Product.Id) %>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label for="Name">Name</label>
<%= HTML.TextboxExt("Name", Model.Product.Name, Array("class", "form-control")) %>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="Category">Category</label>
<%= HTML.DropDownListExt("CategoryId", Model.Product.CategoryId, Model.Categories, empty, empty, Array("class", "form-control")) %>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="Supplier">Supplier</label>
<%= HTML.DropDownListExt("SupplierId", Model.Product.SupplierId, Model.Suppliers, empty, empty, Array("class", "form-control")) %>
</div>
</div>
</div>
<div class="row">
<div class="col-md-1">
<div class="form-group">
<label for="UnitPrice">Unit Price</label>
<%= HTML.TextboxExt("UnitPrice", Model.Product.UnitPrice, Array("class", "form-control")) %>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label for="UnitsInStock">Units In Stock</label>
<%= HTML.TextboxExt("UnitsInStock", Model.Product.UnitsInStock, Array("class", "form-control")) %>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label for="UnitsOnOrder">Units On Order</label>
<%= HTML.TextboxExt("UnitsOnOrder", Model.Product.UnitsOnOrder, Array("class", "form-control")) %>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label for="ReorderLevel">Reorder Level</label>
<%= HTML.TextboxExt("ReorderLevel", Model.Product.ReorderLevel, Array("class", "form-control")) %>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label for="Discontinued">
Discontinued?
<%= HTML.CheckboxExt("Discontinued", Model.Product.Discontinued, Array("class", "form-control")) %>
</label>
</div>
</div>
</div>
<hr />
<div class="form-group">
<%= HTML.Button("submit", "<i class='glyphicon glyphicon-ok'></i> Save", "btn-primary") %>
<%= HTML.LinkToExt("<i class='glyphicon glyphicon-remove'></i> Delete", "Products", "Delete", Array("id", Model.Product.Id), Array("class", "btn btn-danger")) %>
<%= HTML.LinkToExt("Cancel", "Products", "Index", empty, Array("class", "btn btn-default")) %>
</div>
</form>