-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (90 loc) · 3.73 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
<!DOCTYPE html>
<html>
<head>
<title>Todo</title>
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" href="https://rawgit.com/formio/ngFormio/master/dist/formio-full.min.css" />
<link rel="stylesheet" type="text/css" href="css/formio.css" />
</head>
<body ng-app="app-user" ng-controller="indexCtrl">
<button class="btn-add-new" ng-click="popUp_AddNew = true">Add New</button>
<form name="formAddNew" class="form-new-user" ng-show="popUp_AddNew" ng-click="closeOutsideAddNew($event)">
<div class="container-form" id="form">
<div class="item-form">
<label>Card {{popUp_AddNew}}</label>
<input type="text" ng-model="newUser.CARD" placeholder="Card" required="">
</div>
<div class="item-form">
<label>Lastname</label>
<input type="text" ng-model="newUser.LASTNAME" placeholder="Lastname" required="">
</div>
<div class="item-form">
<label>Firstname</label>
<input type="text" ng-model="newUser.FIRSTNAME" placeholder="Firstname" required="">
</div>
<div class="item-form">
<label>Patronymic</label>
<input type="text" ng-model="newUser.PATRONYMIC" placeholder="Patronymic" required="">
</div>
<div class="item-form">
<label>Organisation name short</label>
<input type="text" ng-model="newUser.ORGNAMESHORT" placeholder="Organisation name (short)" required="">
</div>
<div class="item-form">
<label ng-style="{'color':formAddNew.type_name.$invalid && validateForm?'red':''}">Person Type Name</label>
<select ng-model="newUser.PERSONTYPENAME" required="" name="type_name">
<option value="Физ.лицо">Физ. лицо</option>
<option value="Юр.лицо">Юр. лицо</option>
</select>
</div>
<div class="item-form">
<label ng-style="{'color':formAddNew.curr_name.$invalid && validateForm?'red':''}">Currency name</label>
<select ng-model="newUser.CURRNAME" required="" name="curr_name">
<option value="RUB" selected="">RUB</option>
<option value="UAH">UAH</option>
<option value="USB">USD</option>
</select>
</div>
<div class="item-form">
<label>Birthdate</label>
<input type="date" ng-model="newUser.BIRTHDATE" required="">
</div>
<button class="btn-send" ng-click="addNewUser(formAddNew)">
<span ng-class="{'hide-txt':loader}">Send</span>
<div class="loader" ng-class="{'show-loader':loader}"></div>
</button>
</div>
</form>
<div class="table-container">
<table>
<tr>
<td></td>
<td class="title txt-center" ng-repeat="item in fields">{{item.name}}</td>
</tr>
<tr ng-repeat="item in users">
<td>
<button class="btn-delete" ng-click="deleteUser(item.IDPERSON)">Удалить</button>
</td>
<td ng-click="showProfileUser(item.IDPERSON)" ng-repeat="k in item track by $index" ng-class="{'txt-center':$index > 0 && $index < 4}">{{k}}</td>
</tr>
</table>
</div>
<div class="pop-up-users-profile" ng-if="popUp_Profile" ng-click="closeOutsideProfile($event)">
<div class="container-profile" id="profile">
<div class="item" ng-repeat="(k,v) in singleUser">
<span class="title">{{k}}</span>
<span class="val">{{v}}</span>
</div>
</div>
</div>
{{submission}}
<formio src="'https://gaenxikuakdsnzf.form.io/user/register'" submission="submission"></formio>
<script src="https://rawgit.com/formio/ngFormio/master/dist/formio-full.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/2.5.0/ui-bootstrap.js"></script>
<script src="https://code.jquery.com/jquery-2.2.3.js" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script src="js/app/app.js"></script>
<script src="js/app/controller/index-ctrl.js"></script>
<script src="js/app/factory/factory-crud.js"></script>
</body>
</html>