-
Notifications
You must be signed in to change notification settings - Fork 0
/
constraints.html
155 lines (141 loc) · 8.21 KB
/
constraints.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Failed to load resource: the server responded with a status of 404 (NOT FOUND) favicon
REF: https://stackoverflow.com/questions/31075893/im-getting-favicon-ico-error -->
<link rel="shortcut icon" href="#" />
<!---- COMMON ---->
<!-- CSS -->
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css" >
<link rel="stylesheet" href="lib/chosen/chosen.min.css">
<link rel="stylesheet" href="css/customStyle.css">
<title>Gestione Vincoli</title>
</head>
<body>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// INIZIO INSERIMENTO VINCOLI
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<div class="card card-outline-secondary">
<div class="top card-header" style="background-color: #333 !important;">
<h1 class="mb-0" style="text-align:center;">
<a href="http://127.0.0.1:5000/" alt="Indietro" title="Home Calendario" style="float: left;">
<img src="assets/img/left-arrow.png" style="width:32px; margin-right: 10px;"></a>
Gestione Vincoli
</h1>
</div>
</div>
<div class="card card-outline-secondary">
<div class="top card-header" id="headerConstraint">
<h1 class="mb-0"><a href="#"><img src="assets/img/link32.png"></a> Professore</h1>
</div>
<div class="card-body" id="cardBodyConstraint">
<!-- -->
<!-- -->
<form class="form" id="constraintForm" role="form" autocomplete="off" action="http://127.0.0.1:5000/addPreference" method="POST">
<!-- <input type="hidden" id="weekHours"> -->
<div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label">Scelta Professore</label>
<div class="col-lg-8">
<select id="findProfessor" data-placeholder="Begin typing a name to filter..." class="form-control chosen-select"
tabindex="4" size="0" name="selectProfessor" required>
</select>
</div>
</div>
<!-- <div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label">Nome Disciplina</label>
<div class="col-lg-9">
<select id="findDiscipline" data-placeholder="Begin typing a name to filter..." class="form-control chosen-select"
tabindex="4" size="0" name="selectDiscipline" required>
<option value=""></option>
</select>
</div>
</div> -->
<div id="divConstraint">
<div class="form-group row" id="RowDiscipline6H">
<label class="col-lg-3 col-form-label form-control-label">Con quale formato di ore si vuole svolgere le discipline da 6 ore settimanali? (default 3h 3h)</label>
<div class="col-lg-9">
<fieldset id="Discipline6H">
<input type="checkbox" class="checkDisc" value="2" name="Discipline6H"> 2h 2h 2h<br/>
<input type="checkbox" class="checkDisc" value="4" name="Discipline6H"> 4h 2h<br/>
</fieldset>
</div>
</div>
<div class="form-group row" id="RowConsecutiveDays">
<label class="col-lg-3 col-form-label form-control-label">Si vuole svolgere lezioni in giorni consecutivi, se si quando?</label>
<div class="col-lg-9">
<fieldset id="ConsecutiveDays">
<input type="checkbox" class="checkConse" value="startweek" name="ConsecutiveDays"> Inizio settimana<br/>
<input type="checkbox" class="checkConse" value="endweek" name="ConsecutiveDays"> Fine settimana<br/>
</fieldset>
</div>
</div>
<div class="form-group row" id="RowNoLessonDays">
<label class="col-lg-3 col-form-label form-control-label">NON svolgere lezioni in quali giorni? (massimo due giorni a settimana)</label>
<div class="col-lg-4">
Giorno 1:
<select id="ChooseDay1" data-placeholder="Begin typing a name to filter..." class="form-control chosen-select"
tabindex="4" size="0" name="selectDay1">
</select>
</div>
<div class="col-lg-4" id="DivSelectDay2">
Giorno 2:
<select id="ChooseDay2" data-placeholder="Begin typing a name to filter..." class="form-control chosen-select"
tabindex="4" size="0" name="selectDay2">
</select>
</div>
</div>
<div class="form-group row" id="RowNoLessonAMPM">
<label class="col-lg-3 col-form-label form-control-label">Nei giorni di insegnamento quando si preferisce svolgere lezione?</label>
<div class="col-lg-9">
<fieldset id="NoLessonAMPM">
<input type="checkbox" class="checkAMPM" value="AM" name="NoLessonAMPM"> Mattino<br/>
<input type="checkbox" class="checkAMPM" value="PM" name="NoLessonAMPM"> Pomeriggio<br/>
</fieldset>
</div>
</div>
<div class="form-group row" id="RowWriteMethodRoom">
<label class="col-lg-3 col-form-label form-control-label">Preferenza di aula con</label>
<div class="col-lg-9">
<fieldset id="writeMethodRoom">
<input type="checkbox" class="checkChalks" value="Chalk" name="writeMethodRoom"> Gessetti<br/>
<input type="checkbox" class="checkChalks" value="Markers" name="writeMethodRoom"> Pennarelli<br/>
</fieldset>
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label"></label>
<div class="col-lg-9">
<!-- <input type="button" id="resetConstraint" class="btn btn-info" value="Pulisci"> -->
<input type="submit" id="deleteConstraint" class="btn btn-danger" value="Elimina Vincoli">
<input type="submit" class="btn btn-success" value="Aggiorna Vincoli">
</div>
</div>
</div>
</form>
</div>
</div>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// FINE INSERIMENTO VINCOLI
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- JS -->
<script type="text/javascript" src="lib/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="lib/popper.min.js"></script>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="lib/chosen/chosen.jquery.js"></script>
<!---- CUSTOM ---->
<!-- JS -->
<script type="text/javascript" src="js/init.js" ></script>
<script type="text/javascript" src="js/initConstraints.js" ></script>
</body>
</html>