xref: /webtrees/resources/views/modules/gedcom_stats/config.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
5d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
6d70512abSGreg Roach
77c2c99faSGreg Roach/**
87c2c99faSGreg Roach * @var string     $show_last_update
97c2c99faSGreg Roach * @var string     $stat_indi
107c2c99faSGreg Roach * @var string     $stat_surname
117c2c99faSGreg Roach * @var string     $stat_fam
127c2c99faSGreg Roach * @var string     $stat_sour
137c2c99faSGreg Roach * @var string     $stat_media
147c2c99faSGreg Roach * @var string     $stat_repo
157c2c99faSGreg Roach * @var string     $stat_events
167c2c99faSGreg Roach * @var string     $stat_users
177c2c99faSGreg Roach * @var string     $stat_first_birth
187c2c99faSGreg Roach * @var string     $stat_last_birth
197c2c99faSGreg Roach * @var string     $stat_first_death
207c2c99faSGreg Roach * @var string     $stat_last_death
217c2c99faSGreg Roach * @var string     $stat_long_life
227c2c99faSGreg Roach * @var string     $stat_avg_life
237c2c99faSGreg Roach * @var string     $stat_most_chil
247c2c99faSGreg Roach * @var string     $stat_avg_chil
257c2c99faSGreg Roach * @var string     $show_common_surnames
267c2c99faSGreg Roach * @var string     $number_of_surnames
277c2c99faSGreg Roach */
287c2c99faSGreg Roach
29d70512abSGreg Roach?>
30dd6b2bfcSGreg Roach
319e3c2cf9SGreg Roach<div class="row mb-3">
32315eb316SGreg Roach    <div class="col-sm-3 col-form-label">
33dd6b2bfcSGreg Roach        <?= I18N::translate('Last change') ?>
34315eb316SGreg Roach    </div>
35315eb316SGreg Roach
36dd6b2bfcSGreg Roach    <div class="col-sm-9">
37b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => /* I18N: label for yes/no option */ I18N::translate('Show date of last update'),'name' => 'show_last_update', 'checked' => (bool) $show_last_update]) ?>
38dd6b2bfcSGreg Roach    </div>
39dd6b2bfcSGreg Roach</div>
40dd6b2bfcSGreg Roach
419e3c2cf9SGreg Roach<div class="row mb-3">
42315eb316SGreg Roach    <div class="col-sm-3 col-form-label">
43dd6b2bfcSGreg Roach        <?= I18N::translate('Statistics') ?>
44315eb316SGreg Roach    </div>
45315eb316SGreg Roach
46dd6b2bfcSGreg Roach    <div class="col-sm-9">
47b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Individuals'), 'name' => 'stat_indi', 'checked' => (bool) $stat_indi]) ?>
48b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Total surnames'), 'name' => 'stat_surname', 'checked' => (bool) $stat_surname]) ?>
49b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Families'), 'name' => 'stat_fam', 'checked' => (bool) $stat_fam]) ?>
50b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Sources'), 'name' => 'stat_sour', 'checked' => (bool) $stat_sour]) ?>
51b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Media objects'), 'name' => 'stat_media', 'checked' => (bool) $stat_media]) ?>
52b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Repositories'), 'name' => 'stat_repo', 'checked' => (bool) $stat_repo]) ?>
53b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Total events'), 'name' => 'stat_events', 'checked' => (bool) $stat_events]) ?>
54b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Total users'), 'name' => 'stat_users', 'checked' => (bool) $stat_users]) ?>
55b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Earliest birth'), 'name' => 'stat_first_birth', 'checked' => (bool) $stat_first_birth]) ?>
56b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Latest birth'), 'name' => 'stat_last_birth', 'checked' => (bool) $stat_last_birth]) ?>
57b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Earliest death'), 'name' => 'stat_first_death', 'checked' => (bool) $stat_first_death]) ?>
58b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Latest death'), 'name' => 'stat_last_death', 'checked' => (bool) $stat_last_death]) ?>
59b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Individual who lived the longest'), 'name' => 'stat_long_life', 'checked' => (bool) $stat_long_life]) ?>
60b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Average age at death'), 'name' => 'stat_avg_life', 'checked' => (bool) $stat_avg_life]) ?>
61b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Family with the most children'), 'name' => 'stat_most_chil', 'checked' => (bool) $stat_most_chil]) ?>
62b6c326d8SGreg Roach        <?= view('components/checkbox', ['label' => I18N::translate('Average number of children per family'), 'name' => 'stat_avg_chil', 'checked' => (bool) $stat_avg_chil]) ?>
63dd6b2bfcSGreg Roach    </div>
64dd6b2bfcSGreg Roach</div>
65dd6b2bfcSGreg Roach
669e3c2cf9SGreg Roach<div class="mb-3">
67dd6b2bfcSGreg Roach    <div class="row">
68315eb316SGreg Roach        <div class="col-form-label col-sm-3">
69dd6b2bfcSGreg Roach            <label for="show_common_surnames">
70dd6b2bfcSGreg Roach                <?= I18N::translate('Surnames') ?>
71dd6b2bfcSGreg Roach            </label>
72315eb316SGreg Roach        </div>
73315eb316SGreg Roach
74dd6b2bfcSGreg Roach        <div class="col-sm-9">
75b6c326d8SGreg Roach            <?= view('components/checkbox', ['label' => I18N::translate('Most common surnames'), 'name' => 'show_common_surnames', 'checked' => (bool) $show_common_surnames]) ?>
76ac5f8ed1SGreg Roach        </div>
77ac5f8ed1SGreg Roach    </div>
78ac5f8ed1SGreg Roach
79ac5f8ed1SGreg Roach    <div class="row">
80ac5f8ed1SGreg Roach        <label class="col-form-label col-sm-3">
81dd6b2bfcSGreg Roach            <label for="number_of_surnames">
82315eb316SGreg Roach                <?= /* I18N: ... to show in a list */I18N::translate('Number of surnames') ?>
83ac5f8ed1SGreg Roach            </label>
84ac5f8ed1SGreg Roach        </label>
85ac5f8ed1SGreg Roach        <div class="col-sm-9">
86315eb316SGreg Roach            <input class="form-control" id="number_of_surnames" name="number_of_surnames" min="1" required type="number" value="<?= e($number_of_surnames) ?>">
87dd6b2bfcSGreg Roach        </div>
88dd6b2bfcSGreg Roach    </div>
89315eb316SGreg Roach</div>
90