summaryrefslogtreecommitdiff
path: root/resources/views/modules/statistics-chart/custom.phtml
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-04-01 21:34:18 +0100
committerGreg Roach <fisharebest@webtrees.net>2019-04-01 21:40:20 +0100
commitc9e11c2a4bb055d724ccdbad6b9c595dd26c8975 (patch)
tree3e01fa25e49d563451ce9d6f1bd9df87ffdf1a5c /resources/views/modules/statistics-chart/custom.phtml
parent083f5a081833ef2737fe18fc2886ca77ed05a3f7 (diff)
downloadwebtrees-c9e11c2a4bb055d724ccdbad6b9c595dd26c8975.tar.gz
webtrees-c9e11c2a4bb055d724ccdbad6b9c595dd26c8975.tar.bz2
webtrees-c9e11c2a4bb055d724ccdbad6b9c595dd26c8975.zip
Fix: #2363 - inconsistent parameter names for select and radio inputs
Diffstat (limited to 'resources/views/modules/statistics-chart/custom.phtml')
-rw-r--r--resources/views/modules/statistics-chart/custom.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/views/modules/statistics-chart/custom.phtml b/resources/views/modules/statistics-chart/custom.phtml
index 3db3964850..5bed7ba918 100644
--- a/resources/views/modules/statistics-chart/custom.phtml
+++ b/resources/views/modules/statistics-chart/custom.phtml
@@ -126,7 +126,7 @@ use Fisharebest\Webtrees\View;
<label for="x-axis-boundaries-ages" class="sr-only">
<?= I18N::translate('Age interval') ?>
</label>
- <?= view('components/select', ['name' => 'x-axis-boundaries-ages', 'selected' => '1,5,10,20,30,40,50,60,70,80,90,100', 'values' => ['1,5,10,20,30,40,50,60,70,80,90,100' => I18N::plural('%s year', '%s years', 10, I18N::number(10)), '5,20,40,60,75,80,85,90' => I18N::plural('%s year', '%s years', 20, I18N::number(20)), '10,25,50,75,100' => I18N::plural('%s year', '%s years', 25, I18N::number(25))]]) ?>
+ <?= view('components/select', ['name' => 'x-axis-boundaries-ages', 'selected' => '1,5,10,20,30,40,50,60,70,80,90,100', 'options' => ['1,5,10,20,30,40,50,60,70,80,90,100' => I18N::plural('%s year', '%s years', 10, I18N::number(10)), '5,20,40,60,75,80,85,90' => I18N::plural('%s year', '%s years', 20, I18N::number(20)), '10,25,50,75,100' => I18N::plural('%s year', '%s years', 25, I18N::number(25))]]) ?>
</fieldset>
<fieldset id="x_years_m" style="display:none;">
@@ -135,7 +135,7 @@ use Fisharebest\Webtrees\View;
<label for="x-axis-boundaries-ages_m" class="sr-only">
<?= I18N::translate('Select the desired age interval') ?>
</label>
- <?= view('components/select', ['name' => 'x-axis-boundaries-ages_m', 'selected' => '16,18,20,22,24,26,28,30,32,35,40,50', 'values' => ['16,18,20,22,24,26,28,30,32,35,40,50' => I18N::plural('%s year', '%s years', 2, I18N::number(2)), '20,25,30,35,40,45,50' => I18N::plural('%s year', '%s years', 5, I18N::number(5))]]) ?>
+ <?= view('components/select', ['name' => 'x-axis-boundaries-ages_m', 'selected' => '16,18,20,22,24,26,28,30,32,35,40,50', 'options' => ['16,18,20,22,24,26,28,30,32,35,40,50' => I18N::plural('%s year', '%s years', 2, I18N::number(2)), '20,25,30,35,40,45,50' => I18N::plural('%s year', '%s years', 5, I18N::number(5))]]) ?>
</fieldset>
<div id="map_opt" style="display:none;">