-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
175 lines (169 loc) · 8.7 KB
/
index.html
File metadata and controls
175 lines (169 loc) · 8.7 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8"/>
<title>Сотрудники</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="js/requestTableUsers.js"></script>
<script src="js/requestUser.js"></script>
<script src="js/requestUserJobs.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</head>
<body>
<div class="container justify-content-center">
<div class="pt-5">
<table id="table" class="table table-bordered">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">ФИО сотрудника</th>
<th scope="col">Дата рождения</th>
<th scope="col">Пол</th>
<th class="col d-flex justify-content-center">
<button type="button" class="btn btn-primary" data-bs-toggle="modal"
data-bs-target="#createUserModal">Добавить сотрудника
</button>
</th>
</tr>
</thead>
<tbody id="bodyTable">
</tbody>
</table>
</div>
<!-- Модальное окно добавления сотрудника -->
<div class="modal fade" id="createUserModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Добавить сотрудника</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
</div>
<div class="modal-body">
<div class="form-group pb-1 justify-content-center">
<input class="form-control w-100" id="last_name" name="last_name" placeholder="Фамилия"/>
</div>
<div class="form-group pb-1">
<input class="form-control" id="first_name" name="first_name" placeholder="Имя"/>
</div>
<div class="form-group pb-1">
<input class="form-control" id="middle_name" name="middle_name" placeholder="Отчество"/>
</div>
<div class="form-group pb-1">
<input class="form-control" type="date" id="date_of_birth" name="date_of_birth"
placeholder="Дата рождения"/>
</div>
<div class="form-group pb-1">
<label>Пол</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="gender" id="gridRadios1" value="true">
<label class="form-check-label" for="gridRadios1">
Мужской
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="gender" id="gridRadios2"
value="false">
<label class="form-check-label" for="gridRadios2">
Женский
</label>
</div>
</div>
<div class="d-flex flex-row-reverse">
<button id="addUserForm" type="submit" class="btn btn-primary">Создать</button>
</div>
<div id="stateCreateUser" class="d-flex justify-content-center pt-4">
</div>
</div>
</div>
</div>
</div>
<!-- Модальное окно, места работ сотрудника -->
<div class="modal fade" id="userJobs" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 id="modal-title" class="modal-title">Предыдущие места работы</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
</div>
<div class="modal-body">
<div id="bodyJobs">
</div>
<div id="buttonCreate" class="d-flex flex-row-reverse">
</div>
</div>
</div>
</div>
</div>
<!-- Модальное окно изменения данных сотрудника -->
<div class="modal fade" id="changeUserModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Изменить данные сотрудника</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
</div>
<div class="modal-body">
<div class="form-group pb-1 justify-content-center">
<input class="form-control w-100" id="last_name_change" name="last_name_change" placeholder="Фамилия"/>
</div>
<div class="form-group pb-1">
<input class="form-control" id="first_name_change" name="first_name_change" placeholder="Имя"/>
</div>
<div class="form-group pb-1">
<input class="form-control" id="middle_name_change" name="middle_name_change" placeholder="Отчество"/>
</div>
<div class="form-group pb-1">
<input class="form-control" type="date" id="date_of_birth_change" name="date_of_birth_change"
placeholder="Дата рождения"/>
</div>
<div class="form-group pb-1">
<label>Пол</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="gender" id="gridRadios1" value="true">
<label class="form-check-label" for="gridRadios1">
Мужской
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="gender" id="gridRadios2"
value="false">
<label class="form-check-label" for="gridRadios2">
Женский
</label>
</div>
</div>
<div class="d-flex flex-row-reverse">
<button id="changeUserForm" type="submit" class="btn btn-primary">Изменить</button>
</div>
<div id="stateChangeUser" class="d-flex justify-content-center pt-4">
</div>
</div>
</div>
</div>
</div>
<!-- Модальное окно удалить сотрудника -->
<div class="modal fade" id="deletedUserModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Удалить сотрудника</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
</div>
<div class="modal-body">
<h4>Вы уверены, что хотите удалить сотрудника?</h4>
</div>
<div class="d-flex justify-content-center pb-3">
<button id="delete" class="btn btn-danger">Да</button>
</div>
<div id="stateDeleteUser" class="d-flex justify-content-center pt-4">
</div>
</div>
</div>
</div>
</div>
</body>
</html>