-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodifyCompetitionInterface.html
61 lines (61 loc) · 1.94 KB
/
modifyCompetitionInterface.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
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons1.css">
<style>
body{
margin-left: 30px;
}
.space{
margin-top: 20px;
}
</style>
</head>
<body>
<form id="form-update">
<div class="block form-group">
<label for="judoka">Selectionnez la compétition à modifier</label>
<select id="select" name="competition">
<?
const ar_compet = getCompetition();
for(let c of ar_compet){
?>
<option value="<?=c?>"><?=c[1]?></option>
<?}?>
</select>
</div>
<div id="div-container">
<fieldset>
<legend>Selectionnez les attributs à modifier</legend>
<div>
<input type="checkbox" name="checkbox" id="nameCompet">
<label for="nameCompet">Nom</label>
</div>
<div>
<input type="checkbox" name="checkbox" id="town">
<label for="town">Ville</label>
</div>
<div>
<input type="checkbox" name="checkbox" id="year">
<label for="year">Année</label>
</div>
<div>
<input type="checkbox" name="checkbox" id="level">
<label for="level">Niveau</label>
</div>
</fieldset>
<div id="div-update" class="block form-group">
<div hidden>
<input id = "idCompet" type="text" name="idCompet">
</div>
<div id="div-btn" class="space">
<button class="action" onclick="google.script.run.updateJudoka(document.getElementById('form-update'))">Mettre à jour</button>
<button onclick="google.script.host.close()">Annuler</button>
</div>
</div>
</div>
</form>
<?!= HtmlService.createHtmlOutputFromFile('scriptJsModifyCompetition.html').getContent() ?>
</body>
</html>