-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAdmin.js
More file actions
executable file
·85 lines (80 loc) · 3.2 KB
/
Copy pathAdmin.js
File metadata and controls
executable file
·85 lines (80 loc) · 3.2 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
let nbrExp = 1;
let nbrDiplome = 1;
function incrementDiplome()
{
nbrDiplome++;
}
function decrementDiplome()
{
if(nbrDiplome > 1)
{
nbrDiplome--;
}
}
function incrementExp()
{
nbrExp++;
}
function decrementExp()
{
if(nbrExp > 1)
{
nbrExp--;
}
}
function multipleExperience()
{
var wrapper = document.getElementById("HTMLWrapper");
var temp = "";
for(var i = 1 ; i <= nbrExp; i++)
{
temp +=`<div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Début</span>
<input pattern="^[0-9]*$" name="debut` + i +`" class="form-control" placeholder="Année de début" aria-label="Debut" aria-describedby="basic-addon1" minlength="4" maxlength="4" required>
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Fin</span>
<input pattern="^[0-9]*$" name="fin` + i +`" class="form-control" placeholder="Année de fin" aria-label="Fin" aria-describedby="basic-addon1" minlength="4" maxlength="4" required>
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Entreprise</span>
<input type="text" name="entreprise` + i +`" class="form-control" placeholder="Entreprise" aria-label="Entreprise" aria-describedby="basic-addon1" required>
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Poste</span>
<input type="text" name="poste` + i +`" class="form-control" placeholder="Poste occupé" aria-label="Poste" aria-describedby="basic-addon1" required>
</div>
</div><br/><br/>`;
}
temp += `<input hidden name="nbrExp" value="` + nbrExp + `"/>`;
wrapper.innerHTML = temp;
}
function multipleDiplome()
{
var wrapper = document.getElementById("HTMLWrapperDiplome");
var temp = "";
for(var i = 1 ; i <= nbrDiplome; i++)
{
temp +=`<div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Libellé</span>
<input type="text" name="libelle` + i +`" class="form-control" placeholder="Libellé" aria-label="Libellé" aria-describedby="basic-addon1" required>
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Année</span>
<input name="annee` + i +`" pattern="^[0-9]*$" class="form-control" placeholder="Année d'obtention" aria-label="Annee" aria-describedby="basic-addon1" minlength="4" maxlength="4" required>
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Institution</span>
<input type="text" name="instit` + i +`" class="form-control" placeholder="Institution" aria-label="Institution" aria-describedby="basic-addon1" required>
</div>
</div><br/><br/>`;
}
temp += `<input hidden name="nbrDiplome" value="` + nbrDiplome + `"/>`;
wrapper.innerHTML = temp;
}
function SettextMail()
{
document.getElementById("mail").value = document.getElementById("pre").value.toLowerCase() + "." + document.getElementById("nom").value.toLowerCase();
}