-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·128 lines (121 loc) · 6.01 KB
/
index.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<html ng-app="finances">
<head>
<title>Finances</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="lib/iconmoon/style.css">
<link rel="stylesheet" href="css/custom.css">
<script type="text/javascript" src="lib/jquery/jquery.min.js"></script>
<script type="text/javascript" src="lib/jquery/jquery.mask.min.js"></script>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="lib/angular/angular.min.js"></script>
<script type="text/javascript" src="lib/angular/angular-locale_pt-br.js"></script>
<script type="text/javascript" src="lib/js/apps/finances.js"></script>
<script type="text/javascript" src="lib/js/controllers/financesCtrl.js"></script>
<script type="text/javascript" src="lib/js/local/index.js"></script>
</head>
<body ng-controller="financesCtrl" id="financesCtrl">
<div ng-include="'view/header.html'"></div>
<div class="container">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-search"></span></span>
<input class="form-control" type="search" ng-model="busca" placeholder="Busca">
</div>
</div>
<div ng-show="traders.length > 0" class="row traderList">
<div class="col-sm-4" ng-repeat="trader in traders | filter: busca | orderBy:search:direcaoOrdenacao" ng-class="{warning: trader.checked}">
<div class="trader">
<div class="imgCod" style="background-image: url('img/{{trader.codigo}}.jpg');">
<h2 class="col-xs-7">{{trader.codigo}} <small class="text-left" ng-class="{'text-danger': (trader.oscilacao < 0), 'text-success': (trader.oscilacao >= 0)}">({{trader.oscilacao}})</small></h2>
<div class="col-xs-5">
<h4 class="text-right valueCurrency">{{trader.valorAtual | currency}}</h4>
<h4 class="text-right" ng-class="{'text-danger': (trader.rendaAtual < 0), 'text-success': (trader.rendaAtual >= 0)}">
<span ng-class="{'glyphicon glyphicon-arrow-down': (trader.rendaAtual < 0), 'glyphicon glyphicon-arrow-up': (trader.rendaAtual >= 0)}"></span>
{{trader.rendaAtual | currency}}
</h4>
<h4 class="text-right" ng-class="{'text-danger': (trader.percAtual < 0), 'text-success': (trader.percAtual >= 0)}">
<span ng-class="{'glyphicon glyphicon-arrow-down': (trader.percAtual < 0), 'glyphicon glyphicon-arrow-up': (trader.percAtual >= 0)}"></span>
{{trader.percAtual | number:2}} %
</h4>
</div>
</div>
<div class="col-xs-12 traderName well well-sm well-noRadius text-center">
{{trader.nome}}
</div>
<div class="col-xs-12 listDatas">
<br>
<div class="bg-bolsa">
<div class="col-xs-6">
<p><strong>Data:</strong> {{trader.dataCompra}}</p>
<p><strong>Compra:</strong> {{trader.valorCompra | currency}}</p>
<p><strong>Quantidade:</strong> {{trader.quantidade}}</p>
<div class="form-group">
<input type="text" class="form-control moneyMask vendaCampo" placeholder="Valor de Venda" ng-model="trader.valorVenda" ng-required="true">
</div>
<button class="btn btn-success btn-block" ng-click="venderAcao(trader)">Vender Ação</button>
</div>
<div class="col-xs-6">
<p><strong>Taxa:</strong> {{trader.taxa | currency}}</p>
<p><strong>Stop:</strong> <span ng-class="{'text-danger': (trader.valorAtual <= trader.stop)}">{{trader.stop | currency}}</span></p>
<p><strong>Gain:</strong> <span ng-class="{'text-success': (trader.valorAtual >= trader.gain)}">{{trader.gain | currency}}</span></p>
<div class="form-group">
<input type="text" class="form-control vendaCampo dateMask" placeholder="Data de Venda" ng-model="trader.dataVenda" ng-required="true">
</div>
<button class="btn btn-danger btn-block" ng-click="apagarAcao(trader)">Apagar Ação</button>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<form name="traderForm">
<div class="well">
<div class="row">
<div class="col-xs-12 col-sm-6">
<div class="form-group">
<input type="text" class="form-control" placeholder="Código" ng-model="trader.codigo" ng-required="true">
</div>
</div>
<div class="col-xs-6 col-sm-6">
<div class="form-group">
<input type="text" class="form-control moneyMask" placeholder="Valor Compra" ng-model="trader.valorCompra" ng-required="true">
</div>
</div>
<div class="col-xs-6 col-sm-4">
<div class="form-group">
<input type="text" class="form-control" placeholder="Quantidade" ng-model="trader.quantidade" ng-required="true">
</div>
</div>
<div class="col-xs-6 col-sm-4">
<div class="form-group">
<input type="text" class="form-control dateMask" placeholder="Data Compra" ng-model="trader.dataCompra" ng-required="true">
</div>
</div>
<div class="col-xs-6 col-sm-4">
<div class="form-group">
<input type="text" class="form-control moneyMask" placeholder="Taxas" ng-model="trader.taxa">
</div>
</div>
<div class="col-xs-6 col-sm-6">
<div class="form-group">
<input type="text" class="form-control moneyMask" placeholder="Stop" ng-model="trader.stop" ng-required="true">
</div>
</div>
<div class="col-xs-6 col-sm-6">
<div class="form-group">
<input type="text" class="form-control moneyMask" placeholder="Gain" ng-model="trader.gain" ng-required="true">
</div>
</div>
<div class="col-xs-12">
<button class="btn btn-block btn-primary" ng-click="adicionarCompra(trader)" ng-disabled="traderForm.$error.required">Adicionar Compra</button>
</div>
</div>
</div>
</form>
</div>
<div ng-include="'view/footer.html'"></div>
</body>
</html>