mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Support yearRange property on the daterange scopetype
This commit is contained in:
parent
67fb168e6c
commit
e41f047722
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user