HTML
xxxxxxxxxx
1
2
<!-- modal toevoegen -->
3
<div class="modal modal-lg" id="addGebeurtenis">
4
<div class="modal-dialog">
5
<div class="modal-content">
6
<!-- Modal Header -->
7
<div class="modal-header">
8
<h4 class="modal-title">Toevoegen Gebeurtenis</h4>
9
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
10
</div>
11
12
<!-- Modal body -->
13
<div class="modal-body">
14
<div class="col-md-4 mb-4" style="width: 190px;">
15
<!-- dropdown van alle eigenschappen -->
16
<select id="GebeurtenisEigenschap" data-mdb-select-init data-mdb-filter="true" >
17
<option disabled selected>Kies een eigenschap</option>
18
<!-- alle eigenschappen in de dropdown toevoegen -->
19
<?php foreach($options as $option){
20
echo"<option value='".$option."' >". $option ."</option>";
21
}?>
22
</select>
23
</div>
24
<label for="GebeurtenisUitleg">Dit is de uitleg van de eigenschap:</label>
25
<textarea class="form-control" name="GebeurtenisUitleg" id="GebeurtenisUitleg" cols="30" rows="5"></textarea>
26
27
<!-- bestanden kunnen toevoegen -->
28
<div class="file-upload-wrapper mb-3 mt-3">
29
<input
30
type="file"
31
id="input-file-now"
32
class="file-upload-input"
33
data-mdb-multiple="true"
34
data-mdb-file-upload-init
35
data-mdb-default-msg="Sleep of klik om een bestand toe te voegen"
36
data-mdb-remove-btn ="verwijder"
37
data-mdb-max-file-quantity="5"
38
data-mdb-preview-msg ="klik om iets anders toe te voegen"
39
/>
40
</div>
41
<!-- alle checkboxen: positief, gesprek en prive -->
42
<div class="form-check mt-3">
43
<input class="form-check-input" type="checkbox" id="GebeurtenisPositief" value="positief" name="GebeurtenisPositief"/>
44
<label class="form-check-label" for="GebeurtenisPositief">Positief</label>
45
</div>
46
<?php if($_SESSION["Rol"]!="leerling"):?>
47
<div class="form-check mt-3">
48
<input class="form-check-input" type="checkbox" id="GebeurtenisGesprek" value="gesprek" name="GebeurtenisGesprek"/>
49
<label class="form-check-label" for="GebeurtenisGesprek">Gesprek</label>
50
</div>
51
<?php endif; ?>
52
<?php if($_SESSION["Rol"]=="leerlingBegeleiding"||$_SESSION["Rol"]=="admin"):?>
53
<div class="form-check mt-3">
54
<input class="form-check-input" type="checkbox" id="GebeurtenisPrive" value="prive" name="GebeurtenisPrive"/>
55
<label classs="form-check-label" for="GebeurtenisPrive">Prive</label>
56
</div>
57
<?php endif; ?>
58
</div>
59
<!-- Modal footer -->
60
<div class="modal-footer">
61
<button type="button" class="btn btn-warning" data-bs-dismiss="modal">Annuleer</button>
62
<button type="button" value="" id="KnopAdd" class="btn btn-danger" onclick="AddEigenschap(this.value)">Opslaan</button>
63
</div>
64
</div>
65
</div
66
</div>
CSS
1
1
JS
1
1
Console errors: 0