Formulier updates

This commit is contained in:
Joshua Rubingh 2020-05-15 15:04:49 +02:00
parent 4a012eae43
commit 6d495b0cd2
1 changed files with 4 additions and 4 deletions

View File

@ -105,7 +105,7 @@
<small id="specialisatie_aantal_kamers_0Help" class="form-text text-muted">Aantal behandelkamers dat beschikbaar is per specialisatie</small>
</td>
</tr>
<!--
<tr>
<th>
<label for="specialisatie_aantal_behandelingen_0">Aantal verschillende soorten behandelingen</label>
@ -117,7 +117,7 @@
<small id="specialisatie_aantal_behandelingen_0Help" class="form-text text-muted"></small>
</td>
</tr>
-->
<tr>
<th>
<label>Werktijden <small class="text-danger" style="display:none"> Nog niet volledig</small></label>
@ -527,11 +527,11 @@
let class_message = '';
if (percentage > (total * 0.3)) {
calc_message = 'U heeft teveel afspraken geselecteerd voor het 30% scenario';
calc_message = 'U heeft ' + Math.ceil(percentage - (total * 0.3)) + ' teveel afspraken geselecteerd voor het 30% scenario';
class_message = 'alert-danger';
ok = false;
} else if ((total * 0.3) - percentage >= 1) {
calc_message = 'U kunt meer afspraken toevoegen voor het 30% scenario';
calc_message = 'U kunt nog '+ Math.floor((total * 0.3) - percentage) +' afspraken toevoegen voor het 30% scenario';
class_message = 'alert-warning';
} else {
calc_message = 'Dit klopt precies';