kleuren voor matrix

This commit is contained in:
Liesbeth ter Schure
2021-11-17 15:02:43 +01:00
parent 85e9e43374
commit 6c82268ae5
3 changed files with 9 additions and 4 deletions
@@ -301,7 +301,8 @@ class Rapijkpunten extends MY_Controller{
$userLijsten = new Userlijsten($orguserid, $orgid, $orgversies);
$lijsten = $userLijsten->getLijsten();
$nieuwsteversie = $userLijsten->getNieuwsteVersie();
//LS matrixmodel.js verwacht een variable vorm die aangeeft of het een individuele versie is
$lijsten[0]->vorm=2;
$data =[
'lijsten' => $lijsten,
'aantal' => $aantal,
+2 -1
View File
@@ -190,8 +190,9 @@
<!-- ko foreach: ijkpunten -->
<th class="clickable"
data-bind="click: $parent.fToonToelichting"
style=" text-align:center; font-size: x-small; padding: 3px; border: 2px solid white; width: 30px;">
<span data-bind="text: nummer, attr:{'title' : omschrijving}, click: $parent.fToonToelichting">
<span data-bind="text: nummer, attr:{'title' : omschrijving}">
</span>
</th>
<!-- /ko -->
+5 -2
View File
@@ -119,7 +119,6 @@ $(function () {
}
function fAddResult(k) {
var dit = this;
if (k.gem === '' || isNaN(k.gem) || k.gem === null) {
this.gem = 0;
}
@@ -128,7 +127,11 @@ $(function () {
}
this.num = k.nummer;
this.colorcode = '#e08885';
if(k.kleur) dit.colorcode = k.kleur;
if(k.kleurcode) this.colorcode = k.kleurcode;
if (k.disabled == "T" || k.disablenvt == "T") {
this.gem='';
this.colorcode="#cccccc";
}
}
function fAddCriteria(c) {