Support yearRange property on the daterange scopetype

This commit is contained in:
Luke Towers 2017-08-05 12:40:15 -06:00 committed by GitHub
parent 67fb168e6c
commit e41f047722

View File

@ -5,8 +5,9 @@
data-scope-name="<?= $scope->scopeName ?>"
data-scope-data="<?= e(json_encode([
'dates' => [isset($after) ? $after : null, isset($before) ? $before : null],
'minDate' => $scope->minDate ? $scope->minDate : '2000-01-01',
'maxDate' => $scope->maxDate ? $scope->maxDate : '2099-12-31',
'minDate' => $scope->minDate,
'maxDate' => $scope->maxDate,
'yearRange' => $scope->yearRange,
]))
?>">
<span class="filter-label"><?= e(trans($scope->label)) ?>:</span>