-
Notifications
You must be signed in to change notification settings - Fork 1
/
docu_cat.html
82 lines (78 loc) · 2.27 KB
/
docu_cat.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
<!DOCTYPE html>
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons1.css">
<html>
<head>
<base target="_top">
<script>
// Prevent forms from submitting.
function preventFormSubmit() {
var forms = document.querySelectorAll('form');
for (var i = 0; i < forms.length; i++) {
forms[i].addEventListener('submit', function(event) {
event.preventDefault();
});
}
}
window.addEventListener('load', preventFormSubmit);
function handleFormSubmit(formObject) {
google.script.run.withSuccessHandler().docunotes(formObject);
}
</script>
</head>
<body>
<h2>Document de resultats</h2>
Selecciona les opcions del document:
<form id="enviament" onsubmit="handleFormSubmit(this)">
<div class="block form-group">
<label for="select">Nota final a afegir</label>
<select id="select" name="nf">
<option value="0">No s'afegeix</option>
<option value="1">Mitjana ponderada</option>
<option value="2">Ítem més baix</option>
</select>
</div>
<h3>Tipus d'avaluació a afegir</h3>
<div>
<input type="checkbox" id="checkbox1"name="av">
<label for="checkbox1">Autoavalució</label>
</div>
<div>
<input type="checkbox" id="checkbox2"name="co">
<label for="checkbox2">Coavaluació</label>
</div>
<div>
<input type="checkbox" id="checkbox3"name="pf">
<label for="checkbox3">Avaluació del professor</label>
</div>
<div class="block form-group">
<label for="select2">Nota global</label>
<select id="select2" name="ng">
<option value="0">No afegir</option>
<option value="1">Afegir</option>
</select>
</div>
<div class="block form-group">
<label for="select3">Dianes d'avaluació</label>
<select id="select3" name="de">
<option value="0">No afegir</option>
<option value="1">Afegir</option>
</select>
</div>
<h3>Comentaris a afegir</h3>
<div>
<input type="checkbox" id="checkbox4"name="cav">
<label for="checkbox4">Del propi alumne</label>
</div>
<div>
<input type="checkbox" id="checkbox5"name="cco">
<label for="checkbox5">Dels companys</label>
</div>
<div>
<input type="checkbox" id="checkbox6"name="cpf">
<label for="checkbox6">Del professor</label>
</div>
<p><input type="submit" class="action" value="Crear"></p>
</form>
<div id="output"></div>
</body>
</html>