forked from waaws/dev-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcredility.html
More file actions
327 lines (284 loc) · 9.36 KB
/
credility.html
File metadata and controls
327 lines (284 loc) · 9.36 KB
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://cdnjs.cloudflare.com/ajax/libs/rivets/0.9.4/rivets.bundled.min.js" charset="utf-8"></script>
<title>Credility</title>
</head>
<body ng-app="ngWapi" ng-cloak="waaws">
<section>
<h2>Login</h2>
<p>Probar con marce@waaws.space / admin1234 </p>
<form w-form="auth" ng-submit="submit()" login-form="true" on-response-redirect="response.tipo == 'Monotributo' ? './panel-de-control-unipersonal-y-monotributo' : './panel-de-control'">
<fieldset>
<label>Email</label>
<input type="text" ng-model="data.email" />
</fieldset>
<fieldset>
<label>Password</label>
<input type="password" ng-model="data.password" />
</fieldset>
<fieldset>
<button>Enviar</button>
</fieldset>
<div ng-show="sending">
Enviando
</div>
<div ng-show="submitted">
Great
</div>
<div ng-show="fail">
:(
</div>
<!-- Also, we have the server response in a 'response' object -->
<div>
{{response}}
</div>
</form>
</section>
<section>
<h3>Logout</h3>
<div>
<button ng-click="logout('')">Salir</button>
</div>
</section>
<section>
<h2>Perfil</h2>
<h4>Los datos estan disponibles dentro del contexto del w-get</h4>
<section w-get="'/notificaciones'">
<h3>Notificaciones</h3>
<div ng-repeat="notificacion in data">
{{notificacion.Notes}}
</div>
</section>
<section w-get="'/score'">
<h3>My Score: {{data.score}}</h3>
</section>
<div w-get="'/me'">
<section>
<h2>Creditos Activos</h2>
<div ng-repeat="activo in data.Creditos | filter:{ Estado:'Activo' }">
{{activo.Monto}}
</div>
</section>
<section>
<h2>Creditos en cuotas</h2>
<select ng-model="data.creditoEnCuotas" name="paymentsCredits">
<option ng-repeat="activo in data.Creditos | filter:{ Estado:'Activo' }"
ng-if="activo.Repagos.length > 1"
ng-value="activo.Id">
Crédito {{activo.Id}}
</option>
</select>
{{}}
<div ng-repeat="credito in data.Creditos | filter:{ Id:data.creditoEnCuotas }" ng-if="data.creditoEnCuotas">
<div ng-repeat="cuota in credito.Repagos | orderBy:'\u0022Cuota Numero\u0022'" >
{{cuota['Cuota Numero']}}
{{cuota.Monto}}
{{cuota['Status Pago']}}
</div>
</div>
</section>
<section>
<h2>Redes</h2>
<div>
<a target="_blank" href="https://friendlyscore.com/landing/process/1287/{{data._id}}">
Click to Score yourself
</a>
</div>
</section>
<section>
<h2>Creditos Historial</h2>
<div ng-repeat="activo in data.Creditos | filter:{ Estado:'Finalizado' }">
{{activo.Monto}}
</div>
</section>
<section>
<h3>Linea</h3>
<div ng-repeat="credito in data.creditosByType">
Nombre: {{credito.name}}
<div style="width:300px; border:solid 2px black">
<div style="background-color:red; width:{{credito.monto*100/credito.linea}}%; height:30px;"> </div>
</div>
Monto: {{credito.monto}}
Linea: {{credito.linea}}
</div>
</section>
<section>
<form w-form="responsable" ng-submit="submit(data.Responsable[0])">
<h2>Responsable</h2>
<div>
<h4>Nombre:</h4>
<input type="text" ng-model="data.Responsable[0]['Nombre']" />
</div>
<br>
<div>
<h3>Responsable entero</h3>
<div>
{{data.Responsable[0]}}
</div>
</div>
<br>
<div>
<button>Enviar</button>
</div>
</form>
</section>
<section>
<form w-form="/directores" replace-entire-scope="true" json="true" ng-submit="submit(data.Directores)">
<div ng-repeat="director in data.Directores">
<h2>Director</h2>
<div>
<h4>Nombre:</h4>
<input type="text" ng-model="director['Nombre Completo']" />
</div>
<div>
<h4>Documento:</h4>
<input type="text" ng-model="director['Documento']" />
</div>
<div>
<h4>JSON</h4>
{{director}}
</div>
</div>
<div>
<button type="button" ng-click="data.Directores.push({})">Nuevo Director</button>
</div>
<div>
<button>Enviar</button>
</div>
</form>
</section>
<section>
<h3>Proximo vencimiento</h3>
<div>
<div>
<h4>{{data.nextPayment.Fecha}}</h4>
<h4>{{data.nextPayment.Linea.Calificacion}}</h4>
<h4>{{data.nextPayment.Monto}}</h4>
</div>
<div>
{{data.nextPayment}}
</div>
</div>
</section>
<section>
<form w-form="me" ng-submit="submit()">
<h2>Datos Empresa</h2>
<div>
<h4>Razón Social:</h4>
<input type="text" ng-model="data['Razón Social']" />
</div>
<br>
<div>
<button>Enviar</button>
</div>
</form>
<br> <br>
<div>
<h4>Data</h4>
<div> {{data}} </div>
</div>
</section>
<form w-form="files" ng-submit="submit()">
<section>
<h3>Ultimos estados contable</h3>
<div>
<img ng-src={{data.Uploads[0].Attachments[0].url}} width="300" alt="">
</div>
<button file name="last-state">Pic</button>
</section>
<section>
<h3>Poderes</h3>
<button file name="poderes">Pic</button>
</section>
<section>
<h3>Acta directorio</h3>
<button file name="acta-directorio-vigente">Pic</button>
</section>
<div>
<button>Enviar</button>
</div>
<div ng-show="sending"> Enviando </div>
<div ng-show="submitted"> Great </div>
<div ng-show="fail"> :( </div>
<!-- Also, we have the server response in a 'response' object -->
<div>
{{response}}
</div>
</form>
</div>
</section>
<section>
<h2>Enviar mail para generar o regenerar password</h2>
<form w-form="send-password-email" ng-submit="submit()">
<fieldset>
<input type="email" ng-model="data.email" value="test@test.com" />
<button>Enviar</button>
</fieldset>
<div ng-show="sending">
Enviando
</div>
<div ng-show="submitted">
Great
</div>
<div ng-show="fail">
:(
</div>
<!-- Also, we have the server response in a 'response' object -->
<div>
{{response}}
</div>
</form>
</section>
<section>
<h2>Crear o regenerar una contraseña a partir de un email</h2>
<p>Para probar entrar a localhost:8080/credility.html?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1hcmNlQHdhYXdzLnNwYWNlIiwiaWQiOiJyZWNoRjZVdWswQzQyamZWcCIsImlhdCI6MTQ4MjI3MzczNH0.NMvld7Sj1cmBI1Ke22woG1nx1ICnl-O34oed-jf_GsQ&email=marce@waaws.space</p>
<form w-form="new-password" ng-submit="submit()" ng-init="data.token=wLocation.query.token; data.email=wLocation.query.email">
<label>token from url</label>
<input type="text" ng-model="data.token">
<label>email from url</label>
<input type="text" ng-model="data.email">
<fieldset>
<label>Password</label>
<input type="password" ng-model="data.password" />
</fieldset>
<fieldset>
<button>Enviar</button>
</fieldset>
<div ng-show="sending">
Enviando
</div>
<div ng-show="submitted">
Great
</div>
<div ng-show="fail">
:(
</div>
<!-- Also, we have the server response in a 'response' object -->
<div>
{{response}}
</div>
</form>
</section>
<section>
<h2>Redirect URL para Meli APP</h2>
<p>Modificar el redirect_uri de meli a https://waaws-api.herokuapp.com/credility/api/v1/meli-tokens/</p>
<form>
<h3>URLs</h3>
<p>http://auth.mercadolibre.com.ar/authorization?response_type=code&client_id=6883898513739091&redirect_uri=https://waaws-api.herokuapp.com/credility/api/v1/meli-tokens/?token={{accessToken}}</p>
<a target="_blank" ng-href="{{'http://auth.mercadolibre.com.ar/authorization?response_type=code&client_id=6883898513739091&redirect_uri=https://waaws-api.herokuapp.com/credility/api/v1/meli-tokens/?token=' + accessToken}}">Link</a>
</form>
</section>
<!-- Angular -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<!-- WAPI. Usar uno de los dos. -->
<!-- WAPI Para local no subir este cacho a producción -->
<script src="http://localhost:9888/credility/browser/ng-wapi.js" ></script>
<!-- WAPI para prod -->
<script src="https://waaws-api.herokuapp.com/credility/browser/ng-wapi.js"></script>
</body>
</html>