-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (79 loc) · 4.26 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
<!DOCTYPE html>
<html ng-app="DesafioFrontend" lang="pt">
<head>
<meta charset="utf-8">
<title>Desafio Frontend</title>
<link rel="stylesheet" href="styles.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"></script>
<script src="app.js"></script>
</head>
<body>
<div ng-controller="DesafioFrontendController">
<div class="container">
<div class="half-width">
<form ng-submit="submitForm()">
<div>
<label for="nome">Nome:</label>
<input type="text" id="nome" ng-model="formData.name" required>
</div>
<div>
<label for="password">Senha:</label>
<input type="password" id="password" ng-model="formData.password" required>
</div>
<div>
<label for="userId">Responsável</label>
<input type="number" id="userId" ng-model="formData.userId"/>
</div>
<button type="submit">Enviar</button>
</form>
</div>
<div class="half-width half-width-users">
<ul>
<li ng-repeat="user in users">
<div class="item-user">
<div class="data-user" ng-class="{ 'data-user-with-users': user.users.length > 0 }">
<div class="identification-user">
<div class="user-circle">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M11 14.0619V20H13V14.0619C16.9463 14.554 20 17.9204 20 22H4C4 17.9204 7.05369 14.554 11 14.0619ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13Z"></path>
</svg>
</div>
{{ user.name }} - Id: {{user.id}}
</div>
<div class="classification-password-user">
<span class="user-score">{{user.score}}%</span>
<span
ng-class="getPasswordSecurityLevel(user.passwordSecurityLevel)"
class="user-password-security-level">{{getPasswordSecurityLevelDescription(user.passwordSecurityLevel)}}
</span>
</div>
</div>
<ul>
<li ng-repeat="userSubordinate in user.users">
<div ng-class="{ 'data-user-internal-last': $last }" class="data-user-internal">
<div class="identification-user">
<div class="user-circle">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M20 22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13Z"></path>
</svg>
</div>
{{ userSubordinate.name }} - Id: {{userSubordinate.id}}
</div>
<div class="classification-password-user">
<span class="user-score">{{userSubordinate.score}}%</span>
<span
ng-class="getPasswordSecurityLevel(userSubordinate.passwordSecurityLevel)"
class="user-password-security-level">{{getPasswordSecurityLevelDescription(userSubordinate.passwordSecurityLevel)}}
</span>
</div>
</div>
</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>