-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprofilpost.html
494 lines (421 loc) · 25.6 KB
/
profilpost.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
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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Knowit</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/knowit.css" rel="stylesheet">
<link href="css/perso.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
<!-- Sidebar - Brand -->
<object data="img/knowit-logo.svg" type="image/svg+xml">
<img src="img/knowit-logo.svg"/>
</object>
<!-- Divider -->
<hr class="sidebar-divider my-0">
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="smooth nav-link" href="index.html">
<i class="smooth fas fa-chalkboard"></i>
<span>Fil d'actualité</span></a>
</li>
<!-- Divider -->
<hr class="sidebar-divider my-0">
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="smooth nav-link" href="knowledges.html">
<i class="smooth fas fa-book-open"></i>
<span>Mes knowledges</span>
</a>
</li>
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="smooth nav-link" href="requests.html">
<i class="smooth fas fa-praying-hands"></i>
<span>Mes requests</span>
</a>
</li>
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="smooth nav-link" href="postulations.html">
<i class="smooth fas fa-plus-square"></i>
<span>Mes postulations</span>
</a>
</li>
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="smooth nav-link" href="sessions.html">
<i class="smooth fas fa-hands-helping"></i>
<span>Mes sessions</span>
</a>
</li>
<!-- Divider -->
<hr class="sidebar-divider">
<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-md-inline">
<button onclick="window.location = 'createpost.html';" class="btn rounded-circle border-0 sidebar-rounded" id="newBtn">
<i class="fas mt-1 fa-plus"></i>
</button>
</div>
<!-- Sidebar Toggler (Sidebar) -->
<div class="d-none d-md-inline mt-5">
<button class="btn btn-sideToogle border-0 float-right" id="sidebarToggle"></button>
</div>
</ul>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle">
<i class="fa fa-bars"></i>
</button>
<!-- Topbar Search -->
<form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100">
<div class="input-group">
<input id="inputSearch1" type="text" class="form-control bg-light border-0 small" placeholder="Rechercher..." aria-label="Search" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="btnSearch1" class="btn btn-primary" type="button">
<i class="fas fa-search fa-sm"></i>
</button>
</div>
</div>
</form>
<!-- Topbar Navbar -->
<ul class="navbar-nav ml-auto">
<!-- Nav Item - Search Dropdown (Visible Only XS) -->
<li class="nav-item dropdown no-arrow d-sm-none">
<a class="nav-link dropdown-toggle" href="#" id="searchDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-search fa-fw"></i>
</a>
<!-- Dropdown - Messages -->
<div class="dropdown-menu dropdown-menu-right p-3 shadow animated--grow-in" aria-labelledby="searchDropdown">
<form class="form-inline mr-auto w-100">
<div class="input-group">
<input id="inputSearch2" type="text" class="form-control bg-light border-0 small" placeholder="Rechercher..." aria-label="Search" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="btnSearch2" class="btn btn-primary" type="button">
<i class="fas fa-search fa-sm"></i>
</button>
</div>
</div>
</form>
</div>
</li>
<!-- Nav Item - Alerts -->
<li class="nav-item dropdown no-arrow mx-1">
<a id="notifBtn" class="nav-link dropdown-toggle" href="#" id="alertsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-bell fa-fw"></i>
<!-- Counter - Alerts -->
<span id="notificationCounter" class="badge badge-danger badge-counter"></span>
</a>
<!-- Dropdown - Alerts -->
<div class="dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="alertsDropdown">
<h6 class="dropdown-header">
Notifications
</h6>
<div id="notifications">
</div>
</div>
</li>
<!-- Nav Item - Messages -->
<li class="nav-item dropdown no-arrow mx-1">
<a class="nav-link dropdown-toggle" href="#" id="messagesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-envelope fa-fw"></i>
<!-- Counter - Messages -->
<span id="messagesCounter" class="badge badge-danger badge-counter"></span>
</a>
<!-- Dropdown - Messages -->
<div class="dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="messagesDropdown">
<h6 class="dropdown-header">
Messages
</h6>
<div id="messagesNav">
</div>
</div>
</li>
<div class="topbar-divider d-none d-sm-block"></div>
<!-- Nav Item - User Information -->
<li class="nav-item dropdown no-arrow">
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span id="profilPseudo" class="mr-2 d-none d-lg-inline text-gray-600 small"></span>
<img id="profilImage" class="img-profile rounded-circle">
</a>
<!-- Dropdown - User Information -->
<div class="dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="userDropdown">
<a class="dropdown-item" href="profil.html">
<i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
Profile
</a>
<a class="dropdown-item" href="editProfil.html">
<i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
Paramètres
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#logoutModal">
<i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
Déconnexion
</a>
</div>
</li>
</ul>
</nav>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<div class="text-uppercase font-weight-bold mt-3">
Canidature - <span id="pseudo1"> </span>
</div>
<div class = "row mt-3">
<div class="col-xl-4">
<div class="card shadow mb-4">
<div class="card-header py-3">
<h5 class="m-0 font-weight-bold text-primary">Profil du candidat</h5>
</div>
<div class="card-body">
<div class="text-center">
<img id="inputImage" width="150px" height="150px" class="img-profile rounded-circle">
<h3 id="pseudo" class="mt-3 mb-2"></h3>
<div class="text-gray-500">
<span id="nbKnowledge1"></span> knowledges • <span id="nbRequest1"></span> requests
<div>
<span id="age">20</span> ans
</div>
</div>
</div>
<div id="description" class="mt-4 px-1">
</div>
<div class="mt-4 px-1 text-center">
<a href="javascript:void(0)" style="width: 2.5rem; height: 2.5rem;" class="btn rounded-circle btn-success border-0 text-white mx-1" id="acceptBtn">
<i style="margin-top: 6px;" class="fas fa-check"></i>
</a>
<a href="javascript:void(0)" style="width: 2.5rem; height: 2.5rem;" class="btn rounded-circle btn-danger border-0 text-white mx-1" id="declinetBtn">
<i style="margin-top: 6px;" class="fas fa-times"></i>
</a>
</div>
</div>
</div>
</div>
<div class="col-xl-4">
<div class="card shadow mb-4">
<div class="card-header py-3">
<h5 class="m-0 font-weight-bold text-primary">Commentaire du candidat</h5>
</div>
<div class="card-body">
<h5>
<span id="pseudo2"></span> à commenté :
</h5>
<div id="message" class="mt-3">
</div>
<div class="mt-3 text-primary">
<span id="tmp_estime">20</span> heures de cours estimé
</div>
<div class="small mt-1 text-gray-500">
Postulé le <span id="dateCandidat"></span>
</div>
</div>
</div>
<div class="card shadow mb-4">
<div class="card-header py-3">
<h5 class="m-0 font-weight-bold text-primary">Compétence(s) du candidat</h5>
</div>
<div class="card-body">
<div id="competences-badge" class="px-1 text-center mb-3">
</div>
<div id="competences-details">
</div>
</div>
</div>
</div>
<div class="col-xl-4">
<div class="card shadow mb-4">
<div class="card-header py-3">
<h5 class="m-0 font-weight-bold text-primary">Votre post</h5>
</div>
<div class="card-body">
<div>
<img id="imgAuteur" height="30px" width="30px" class="img-profile mr-1 rounded-circle">
<span class="mr-2 d-lg-inline text-gray-600 small">Par <span id="pseudoAuteur"></span></span>
<div id="descAuteur" class="mt-3">
</div>
<div class="text-primary mt-3 small">
<span id="nbHeureAuteur"></span> heures de cours estimées
</div>
<div class="row d-flex align-items-center mt-3">
<div id="categories" class="col-auto">
</div>
<div class="col small text-gray-500">
Publié le <span id="dateAuteur"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.container-fluid -->
<!-- Begin Chat Part -->
<div class="fixed-btn scale-up-center">
<a href="javascript:void(0)" id="btnChat" style="width: 3.2rem; height: 3.2rem;" class="btn rounded-circle btn-primary bg-primary border-0 text-white mx-1" id="chatBtn"><i style="margin-top: 9px; font-size: 20px;" class="fas fa-comments"></i></a>
</div>
<div id="chat" class="bg-primary shadow chat-size scale-up-center d-none">
<div class="container-fluid m-0 p-0">
<div class="row no-gutters">
<div class="col-12 my-2 d-flex align-items-center justify-content-between">
<span style="margin-left:30px;" class="text-white font-weight-bold"> Messages</span>
<button id="closeChat" style="margin-right:30px;" type="button" class="chat-close text-white btn close-hover" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="chat-col-name bg-white">
<ul id="chatNetwork" class="list-group chat-responsive-li">
</ul>
</div>
<div class="bg-white chat-col-message">
<div class="messages" id="chatMessages">
</div>
<div style="border-top: 3px solid rgba(0, 0, 0, 0.125);">
<div class="input-group">
<input id="chatInput" type="text" class="form-control bg-light border-0 small" placeholder="Entrez un message ...">
<div class="input-group-append">
<button id="chatSend" class="btn btn-primary">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Chat Part -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<footer class="mt-3 sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>Copyright © Knowit 2019</span>
</div>
</div>
</footer>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Logout Modal-->
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="logoutModalTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content" style="border: none;">
<div class="modal-header bg-danger text-white">
<h5 class="modal-title" id="logoutModalTitle">Prêt à déconnecter ?</h5>
<button class="close text-white" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="text-center py-2">
<i style="font-size: 5rem" class="fas fa-sign-out-alt text-danger"></i>
</div>
<div class="text-center">
Selectionner <b>"Déconnexion"</b> ci-dessous si vous êtes prêt à <b>mettre fin</b> à la session actuelle.
</div>
</div>
<div class="modal-footer">
<button class="btn btn-outline-secondary" type="button" data-dismiss="modal">Annuler</button>
<a id="disconnectBtn" class="btn btn-danger" href="javascript:void(0)">Déconnexion</a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="declineModal"tabindex="-1" role="dialog" aria-labelledby="declineModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content" style="border: none;" >
<div class="modal-header bg-danger text-white">
<h5 class="modal-title" id="declineModalLabel">Refuser la candidature</h5>
<button class="close text-white" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="text-center py-2">
<i style="font-size: 5rem" class="fas fa-times text-danger"></i>
</div>
<div class="text-center">
Êtes-vous certain de vouloir décliner cette candidature ?
</div>
</div>
<div class="modal-footer">
<button class="btn btn-outline-secondary" type="button" data-dismiss="modal">Annuler</button>
<a class="btn btn-danger" href="javascript:void(0)" id="declineConfirm">Décliner</a>
</div>
</div>
</div>
</div>
<!-- Accept Modal-->
<div class="modal fade" id="acceptModal"tabindex="-1" role="dialog" aria-labelledby="acceptModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content" style="border: none;" >
<div class="modal-header bg-success text-white">
<h5 class="modal-title" id="acceptModalLabel">Accepter la candidature</h5>
<button class="close text-white" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="text-center pt-2 pb-3">
<i style="font-size: 5rem" class="fas fa-check text-success"></i>
</div>
<div class="mx-2">
Êtes-vous certain <b>d'accepter</b> cette candidature ?
Vous ne pourrez pas choisir <b>un autre candidat</b>.
<div class="form-group mt-2">
<label for="messageConfirm">Envoyez un message :</label>
<textarea class="form-control" id="messageConfirm" rows="3" required=""></textarea>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-outline-secondary" type="button" data-dismiss="modal">Annuler</button>
<a class="btn btn-success" href="javascript:void(0)" id="acceptConfirm">Accepter</a>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Vendor scripts for all pages-->
<script src="js/vendor/sb-admin-2.min.js"></script>
<!-- Perso scripts for all pages-->
<script src="js/user.js"></script>
<script src="js/chat.js"></script>
<script src="js/deconnexion.js"></script>
<script src="js/notification.js"></script>
<script src="js/search.js"></script>
<!-- Perso scripts for this page-->
<script src="js/profilApi.js"></script>
<script src="js/profilpost.js"></script>
</body>
</html>