-
Notifications
You must be signed in to change notification settings - Fork 0
/
list-for-buy.html
50 lines (48 loc) · 1.65 KB
/
list-for-buy.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
<!DOCTYPE html>
<html lang="pt-br" ng-app="sankhyaApp">
<head>
<title>AngularJS Project - Sankhya</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/bootstrap/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container" ng-controller="TesteComprasCtrl">
<div class="row">
<div class="page-header">
<h1>List for buy {{ teste }}</h1>
</div>
</div>
<div class="row">
<table class="table table-striped" style="width:480px;">
<thead>
<tr>
<th class="text-center">Buy</th>
<th class="text-center">Product</th>
<th class="text-left">Quantity</th>
<th class="text-center">Delete</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in itens">
<td class="text-center"><input type="checkbox" ng-model="item.buy"></td>
<td class="text-center"><strong>{{ item.product }}</strong></td>
<td class="text-left">{{ item.qtd }}</td>
<td class="text-center"><span class="glyphicon glyphicon-remove hover-icon" ng-click="deleteItem(item)"></span></td>
</tr>
</tbody>
</table>
</div>
<div class="row">
<form class="form-inline" name="formItem" role="form">
<input type="text" class="form-control" ng-model="item.product" placeholder="Product">
<input type="number" class="form-control" ng-model="item.qtd" placeholder="Quantity" class="input-small">
<button class="btn btn-primary" ng-click="addItem()">Add item</button>
</form>
</div>
</div>
<script src="lib/angular/angular.min.js"></script>
<script src="js/sankhya-app.js"></script>
</body>
</html>