Browse Source

[Administration] Distributions : nombre de distributions chargées #642

refactoring
Guillaume Bourgeois 2 years ago
parent
commit
cc7cf24b50
2 changed files with 470 additions and 462 deletions
  1. +465
    -460
      backend/controllers/DistributionController.php
  2. +5
    -2
      backend/web/js/vuejs/distribution-index.js

+ 465
- 460
backend/controllers/DistributionController.php
File diff suppressed because it is too large
View File


+ 5
- 2
backend/web/js/vuejs/distribution-index.js View File

@@ -202,16 +202,19 @@ var app = new Vue({
app.calendar.attrs = [] ;
var distributions = response.data.distributions ;

console.log(app.calendar.attrs);

if(distributions.length) {
for(var i= 0; i < distributions.length; i++) {
app.calendar.attrs.push({
app.calendar.attrs.push({
highlight: {
backgroundColor: '#5cb85c',
},
contentStyle: {
color: 'white',
},
dates: distributions[i].date,
dates: distributions[i].date
}) ;
}
}

Loading…
Cancel
Save