2020 <td >{{ supp .PurchaseOrderLine .length }} </td >
2121 <td >R$ {{ supp .TotalAmount }} </td >
2222 <td >
23- <a class =" text-primary" href =" # " ng-click =" edit(supp.Id)" ><i class =" glyphicon glyphicon-edit" ></i > Edit</a >
24- <a class =" text-danger" href =" # " ng-click =" delete(supp.Id)" ><i class =" glyphicon glyphicon-remove" ></i > Delete</a >
23+ <a class =" text-primary" href =" " ng-click =" edit(supp.Id)" ><i class =" glyphicon glyphicon-edit" ></i > Edit</a >
24+ <a class =" text-danger" href =" " ng-click =" delete(supp.Id)" ><i class =" glyphicon glyphicon-remove" ></i > Delete</a >
2525 </td >
2626 </tr >
2727 </table >
2828
2929 <h2 >{{ formTitle }} </h2 >
30- <form name =" supplierForm" ng-submit =" submitForm(PurchaseOrder)" >
31- <div class =" row" >
32- <div class =" form-group col-md-4" >
33- <label for =" ID" >ID</label >
34- <input type =" text" id =" ID" class =" form-control" placeholder =" Product ID" ng-model =" PurchaseOrder.Id" disabled >
30+ <div class =" container" >
31+ <form name =" supplierForm" ng-submit =" submitForm(PurchaseOrder)" >
32+ <div class =" row" >
33+ <fieldset >
34+ <legend >Purchase Order Info</legend >
35+ <div class =" " >
36+ <div class =" form-group col-md-4" >
37+ <label for =" ID" >ID</label >
38+ <input type =" text" id =" ID" class =" form-control" placeholder =" Product ID" ng-model =" PurchaseOrder.Id" disabled >
39+ </div >
40+ <div class =" form-group col-md-4" >
41+ <label for =" PurchaseDate" >Purchase Date</label >
42+ <input class =" form-control" id =" PurchaseDate" type =" date" placeholder =" MM-dd-yyyy" min =" 1900-01-01" max =" 2060-12-31" ng-model =" PurchaseOrder.PurchaseDate" required >
43+
44+ </div >
45+ <div class =" form-group col-md-4" >
46+ <label for =" TotalAmount" >Total Amount</label >
47+ <input type =" text" id =" TotalAmount" class =" form-control" placeholder =" Total Amount" ng-model =" PurchaseOrder.TotalAmount" disabled >
48+ </div >
49+ </div >
50+ </fieldset >
3551 </div >
36- </div >
37- <div class =" row" >
38- <div class =" form-group col-md-4" >
39- <label for =" PurchaseDate" >Purchase Date</label >
40- <input class =" form-control" id =" PurchaseDate" type =" date" placeholder =" MM-dd-yyyy" min =" 1900-01-01" max =" 2060-12-31" ng-model =" PurchaseOrder.PurchaseDate" >
52+ <div class =" row" >
53+ <fieldset >
54+ <legend >Purchase Order Line</legend >
55+ <a class =" btn btn-sm btn-success" data-ng-click =" cloneItem()" ><i class =" glyphicon glyphicon-duplicate" ></i > New Line </a >
56+ <div class =" row" data-ng-repeat =" POLine in PurchaseOrder.PurchaseOrderLine" >
57+ <div class =" form-group col-md-4" >
58+ <label for =" ProductId" >Product</label >
59+ <select id =" ProductId" class =" form-control" ng-model =" POLine.ProductId" ng-options =" s.Id as s.Name for s in products" required >
60+ <option value =" " >Choose Option</option >
61+ </select >
62+ </div >
63+ <div class =" form-group col-md-2" >
64+ <label for =" QTY" >Quantity</label >
65+ <input type =" text" id =" QTY" class =" form-control" placeholder =" Quantity" ng-model =" POLine.Quantity" required >
66+ </div >
67+ <div class =" col-md-4" >
68+ <label for =" " >Operations</label >
69+ <br />
70+
71+ <a class =" btn btn-sm btn-warning delete-field-{{$index}}" data-ng-click =" removeItem(POLine)" ><i class =" glyphicon glyphicon-remove-circle" ></i > Remove Line </a >
72+ </div >
73+ </div >
74+ </fieldset >
4175
4276 </div >
43- </div >
44- <div class =" row" >
45- <div class =" form-group col-md-4" >
46- <label for =" TotalAmount" >Total Amount</label >
47- <input type =" text" id =" TotalAmount" class =" form-control" placeholder =" Total Amount" ng-model =" PurchaseOrder.TotalAmount" disabled >
48- </div >
49- </div >
50- <div class =" row" >
51- <div class =" form-group col-md-3" >
52- <label for =" Product" >Product</label >
53- <select id =" Product" class =" form-control" ng-model =" PurchaseOrder.PurchaseOrderLine.ProductId" ng-options =" s.Id as s.Name for s in products track by s.Id" required >
54- <option value =" " >Choose Option</option >
55- </select >
56- </div >
57- <div class =" form-group col-md-1" >
58- <label for =" QTY" >Quantity</label >
59- <input type =" text" id =" QTY" class =" form-control" placeholder =" Quantity" ng-model =" PurchaseOrder.PurchaseOrderLine.Quantity" >
77+ <div class =" row" >
78+ <button type =" submit" class =" btn btn-default" >Add/Update</button >
79+ <button type =" reset" class =" btn btn-default" >Clear</button >
6080 </div >
61- </div >
62- <button type =" submit" class =" btn btn-default" >Add/Update</button >
63- <button type =" reset" class =" btn btn-default" >Clear</button >
64- </form >
81+ </form >
82+ </div >
6583 </div >
6684</div >
0 commit comments