Fix correct labeling and added mouse pointers for table sorting
This commit is contained in:
parent
c3671d0cae
commit
de2e200551
@ -31,6 +31,10 @@ table {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pointer {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
form#new_schedule_form input:not([type=checkbox]) {
|
form#new_schedule_form input:not([type=checkbox]) {
|
||||||
width: 100%
|
width: 100%
|
||||||
}
|
}
|
||||||
|
@ -106,19 +106,6 @@
|
|||||||
<small id="specialisatie_aantal_kamers_0Help" class="form-text text-muted">Aantal behandelkamers dat beschikbaar is per specialisatie</small>
|
<small id="specialisatie_aantal_kamers_0Help" class="form-text text-muted">Aantal behandelkamers dat beschikbaar is per specialisatie</small>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!--
|
|
||||||
<tr>
|
|
||||||
<th>
|
|
||||||
<label for="specialisatie_aantal_behandelingen_0">Aantal verschillende soorten behandelingen</label>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<input type="number" class="form-control" min="0" max="100" id="specialisatie_aantal_behandelingen_0" name="specialisatie_aantal_behandelingen_0" aria-describedby="specialisatie_aantal_behandelingen_0Help" required>
|
|
||||||
<small id="specialisatie_aantal_behandelingen_0Help" class="form-text text-muted"></small>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
-->
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<label>Werktijden <small class="text-danger" style="display:none"> Nog niet volledig</small></label>
|
<label>Werktijden <small class="text-danger" style="display:none"> Nog niet volledig</small></label>
|
||||||
@ -350,12 +337,12 @@
|
|||||||
<table id="tabel_behandelingen">
|
<table id="tabel_behandelingen">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Naam behandeling</th>
|
<th class="pointer">Naam behandeling</th>
|
||||||
<th>Duur (in minuten)</th>
|
<th class="pointer">Duur (in minuten)</th>
|
||||||
<th>Specialisatie</th>
|
<th class="pointer">Specialisatie</th>
|
||||||
<th>Methode</th>
|
<th class="pointer">Methode</th>
|
||||||
<th>Normaal aantal</th>
|
<th class="pointer">Normaal aantal</th>
|
||||||
<th>Gewenst als op 30%</th>
|
<th class="pointer">Gewenst als op 30%</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -486,14 +473,19 @@
|
|||||||
element = jQuery(element);
|
element = jQuery(element);
|
||||||
var nr = counter; // We are starting with 0 so the amount is the new number
|
var nr = counter; // We are starting with 0 so the amount is the new number
|
||||||
element.find('label').first().text('Specialisatie ' + (nr + 1));
|
element.find('label').first().text('Specialisatie ' + (nr + 1));
|
||||||
element.find('select,input').each(function(index,selectitem){
|
element.find('select,input,label').each(function(index,selectitem){
|
||||||
selectitem = jQuery(selectitem);
|
selectitem = jQuery(selectitem);
|
||||||
|
if (selectitem.is('label')) {
|
||||||
|
selectitem.prop('for',selectitem.prop('for').replace(/_\d+$/,'_' + nr));
|
||||||
|
} else {
|
||||||
|
//console.log(selectitem,selectitem.prop('name'),selectitem.prop('id') );
|
||||||
selectitem.prop('name',selectitem.prop('name').replace(/_\d+$/,'_' + nr));
|
selectitem.prop('name',selectitem.prop('name').replace(/_\d+$/,'_' + nr));
|
||||||
selectitem.prop('id',selectitem.prop('id').replace(/_\d+$/,'_' + nr));
|
selectitem.prop('id',selectitem.prop('id').replace(/_\d+$/,'_' + nr));
|
||||||
|
|
||||||
if (selectitem.attr('aria-describedby')) {
|
if (selectitem.attr('aria-describedby')) {
|
||||||
selectitem.attr('aria-describedby',selectitem.attr('aria-describedby').replace(/_\d+Help$/,'_' + nr + 'Help'));
|
selectitem.attr('aria-describedby',selectitem.attr('aria-describedby').replace(/_\d+Help$/,'_' + nr + 'Help'));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -1000,6 +992,7 @@
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
updateBehandelingen();
|
||||||
load_clone_data();
|
load_clone_data();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user