|
|
@@ -87,14 +87,17 @@ $this->addBreadcrumb('Rapports') ; |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="content-max-height"> |
|
|
|
<div class="distribution-month" v-for="distributionsMonth in distributionsByMonthArray" v-if="distributionsMonth.year == distributionYear && distributionsMonth.distributions.length > 0"> |
|
|
|
<a class="btn btn-default link-month-distribution" @click="distributionsMonth.display = !distributionsMonth.display">{{ distributionsMonth.month }} <span class="glyphicon glyphicon-menu-down"></span></a> |
|
|
|
<ul v-if="distributionsMonth.display"> |
|
|
|
<li v-for="distribution in distributionsMonth.distributions"> |
|
|
|
<input type="checkbox" :id="'distribution_'+distribution.id" v-model="distribution.checked" @change="reportChange" /> |
|
|
|
<label :for="'distribution_'+distribution.id">{{ distribution.date }}</label> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<div class="distribution-month" v-for="(distributionsMonth, month) in distributionsByMonthArray" v-if="distributionsMonth.year == distributionYear && distributionsMonth.distributions.length > 0"> |
|
|
|
<a class="btn btn-default link-month-distribution" @click="distributionsMonth.display = !distributionsMonth.display">{{ distributionsMonth.month }} <span class="label label-success" v-if="countDistributionsByMonth(month)">{{ countDistributionsByMonth(month) }}</span> <span class="glyphicon glyphicon-menu-down"></span></a> |
|
|
|
<div class="the-distributions" v-if="distributionsMonth.display"> |
|
|
|
<a @click="selectDistributions(month)" class="btn btn-default btn-xs btn-select"><span class="glyphicon glyphicon-check"></span> Tout <span v-if="countDistributionsByMonth(month)">déselectionner</span><span v-else>sélectionner</span></a> |
|
|
|
<ul> |
|
|
|
<li v-for="distribution in distributionsMonth.distributions"> |
|
|
|
<input type="checkbox" :id="'distribution_'+distribution.id" v-model="distribution.checked" @change="reportChange" /> |
|
|
|
<label :for="'distribution_'+distribution.id">{{ distribution.date }}</label> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |