-
Notifications
You must be signed in to change notification settings - Fork 2
/
prijava_predavanja.html
158 lines (131 loc) · 4.83 KB
/
prijava_predavanja.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
---
layout: default
title: /risk/prijava_predavanja
---
<style>
div.form-group
{
margin-bottom: 2rem;
}
</style>
<script>
function onDateChanged(event)
{
let d = new Date(event.target.value);
document.querySelector('#day').setAttribute('value', d.getDate());
document.querySelector('#month').setAttribute('value', d.getMonth()+1);
document.querySelector('#year').setAttribute('value', d.getFullYear());
}
function onRadioChanged(value)
{
document.querySelector('#radioValue').setAttribute('value', value);
}
</script>
<div class="row">
<div class="col">
<br>
<form
action="https://docs.google.com/forms/d/e/1FAIpQLSfg1xM9EjhyOcUR9AIpQm6bhq6RflLOhWriCPTwl2TiNviAhA/formResponse"
method="post">
<div class="form-group">
<label>Ime i prezime</label>
<input class="form-control" name="entry.555456565" type="text" required/>
</div>
<div class="form-group">
<label>
Akademska institucija ili kompanija iz koje dolazite. Ukoliko ste
student, napisite i godinu studija.
</label>
<input class="form-control" name="entry.311535869" type="text" required/>
</div>
<div class="form-group">
<label>Email adresa</label>
<input class="form-control" name="entry.945552565" type="text" required/>
</div>
<div class="form-group">
<label>Tema predavanja</label>
<input class="form-control" name="entry.2001898711" type="text" required/>
</div>
<div class="form-group">
<label>Kratak opis Vašeg predavanja.</label>
<textarea class="form-control" name="entry.204440264" required></textarea>
</div>
<div class="form-group">
<label>Zašto studentima možete koristiti Vaše predavanje?</label>
<textarea class="form-control" name="entry.1811482014" required></textarea>
</div>
<div class="form-group">
<label>Koje je neophodno predznanje da se Vaše predavanje prati?</label>
<textarea class="form-control" name="entry.1984774240" required></textarea>
</div>
<div class="form-group">
<label>Kada najranije možete biti spremni da održite predavanje? </label>
<input type='date' class="form-control" onchange="onDateChanged(event)" required>
<input id="month" class="from-control"
name="entry.1509151369_month" type="hidden"/>
<input id="day" class="from-control"
name="entry.1509151369_day" type="hidden"/>
<input id="year" class="from-control"
name="entry.1509151369_year" type="hidden"/>
</div>
<div class="form-group">
<label>
Da li će predavanje od polaznika zahtevati da rešavaju neke zadatke?
</label>
<div class="form-check">
<input onclick="onRadioChanged('Da')" class="form-check-input"
type="radio" name="non" required/>
<label class="form-check-label">Da</label>
</div>
<div class="form-check">
<input onclick="onRadioChanged('Ne')"class="form-check-input"
type="radio" name="non" required/>
<label class="form-check-label">Ne</label>
</div>
<div class="form-check">
<input onclick="onRadioChanged('Nije još definisano')"
class="form-check-input" type="radio" name="non" required/>
<label class="form-check-label">Nije još definisano</label>
</div>
<input id="radioValue" class="from-control"
name="entry.1694637283" type="hidden"/>
</div>
<div class="form-group">
<label>
Koliko časova Vam je neophodno da realizujete predavanje?
Praksa je do sada bila da to budu 3 vezana časa,
no u redu je da odstupite od toga.
</label>
<input class="form-control" name="entry.182714947" type="text" required/>
</div>
<div class="from-group">
<label>Dodatna poruka RISK timu [opciono].</label>
<textarea class="form-control" name="entry.1812725616"></textarea>
</div>
<input type="submit" value="Prijavi se" class="btn btn-primary" style="margin-top:2rem"/>
<input class="from-control" name="fvv" type="hidden" value="1"/>
<input class="from-control" name="draftResponse" type="hidden"
value="[null, null, 0]"/>
<input class="from-control" name="pageHistory" type="hidden" value="0"/>
<input class="from-control" name="fbzx" type="hidden" value="0"/>
</form>
</div>
</div>
<script>
let radios = document.querySelectorAll('div.form-check > input');
let values = document.querySelectorAll('div.form-check > label');
for(let i in radios)
{
if(radios[i].checked)
{
onRadioChanged(values[i].innerText);
}
}
let date = document.querySelector('input[type=date]').value;
if(date !== "")
{
onDateChanged({target:{value:date}});
}
</script>
</body>
</html>