forked from jfeliua/corubrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_en.html
90 lines (86 loc) · 2.48 KB
/
index_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
81
82
83
84
85
86
87
88
<!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().envianotes(formObject);
}
</script>
</head>
<body>
<h2>Send results</h2>
Choose the correct options:
<form id="enviament" onsubmit="handleFormSubmit(this)">
<div class="block form-group">
<label for="select">Final grade to send</label>
<select id="select" name="nf">
<option value="0">Don't send</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 send</option>
<option value="1">Send</option>
</select>
</div>
<div class="block form-group">
<label for="select3">Radar Chart</label>
<select id="select3" name="de">
<option value="0">Don't send</option>
<option value="1">Send</option>
</select>
<h3>Comments to send</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>
<h3>Recipients</h3>
<div>
<input type="radio" name="dest" value="all" id="radio1" checked>
<label for="radio1">All students/groups</label>
</div>
<div>
<input type="radio" name="dest" alue="un" id="radio2">
<label for="radio2">Only one student/group</label>
</div>
<p><input type="submit" class="action" value="Send"></p>
</form>
<div id="output"></div>
</body>
</html>