-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocu_en.html
82 lines (78 loc) · 2.22 KB
/
docu_en.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 of results</h2>
Choose the document options:
<form id="enviament" onsubmit="handleFormSubmit(this)">
<div class="block form-group">
<label for="select">Final grade to add</label>
<select id="select" name="nf">
<option value="0">Don't add</option>
<option value="1">Average</option>
<option value="2">Lower item</option>
</select>
</div>
<h3>Kind of evaluation</h3>
<div>
<input type="checkbox" id="checkbox1"name="av">
<label for="checkbox1">Autoevaluation</label>
</div>
<div>
<input type="checkbox" id="checkbox2"name="co">
<label for="checkbox2">Coevaluation</label>
</div>
<div>
<input type="checkbox" id="checkbox3"name="pf">
<label for="checkbox3">Teacher evaluation</label>
</div>
<div class="block form-group">
<label for="select2">Overall grade</label>
<select id="select2" name="ng">
<option value="0">Don't add</option>
<option value="1">Add</option>
</select>
</div>
<div class="block form-group">
<label for="select3">Radar Chart</label>
<select id="select3" name="de">
<option value="0">Don't add</option>
<option value="1">Add</option>
</select>
</div>
<h3>Comments to add</h3>
<div>
<input type="checkbox" id="checkbox4"name="cav">
<label for="checkbox4">Student's own comments</label>
</div>
<div>
<input type="checkbox" id="checkbox5"name="cco">
<label for="checkbox5">Peers' comments</label>
</div>
<div>
<input type="checkbox" id="checkbox6"name="cpf">
<label for="checkbox6">Teacher</label>
</div>
<p><input type="submit" class="action" value="Create"></p>
</form>
<div id="output"></div>
</body>
</html>