xref: /webtrees/resources/views/modules/gedcom_stats/config.phtml (revision 4a9a60957058ca2a34e30a0d6f783e1540606590)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var string     $show_last_update
9 * @var string     $stat_indi
10 * @var string     $stat_surname
11 * @var string     $stat_fam
12 * @var string     $stat_sour
13 * @var string     $stat_media
14 * @var string     $stat_repo
15 * @var string     $stat_events
16 * @var string     $stat_users
17 * @var string     $stat_first_birth
18 * @var string     $stat_last_birth
19 * @var string     $stat_first_death
20 * @var string     $stat_last_death
21 * @var string     $stat_long_life
22 * @var string     $stat_avg_life
23 * @var string     $stat_most_chil
24 * @var string     $stat_avg_chil
25 * @var string     $show_common_surnames
26 * @var string     $number_of_surnames
27 */
28
29?>
30
31<div class="row mb-3">
32    <div class="col-sm-3 col-form-label">
33        <?= I18N::translate('Last change') ?>
34    </div>
35
36    <div class="col-sm-9">
37        <?= 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]) ?>
38    </div>
39</div>
40
41<div class="row mb-3">
42    <div class="col-sm-3 col-form-label">
43        <?= I18N::translate('Statistics') ?>
44    </div>
45
46    <div class="col-sm-9">
47        <?= view('components/checkbox', ['label' => I18N::translate('Individuals'), 'name' => 'stat_indi', 'checked' => (bool) $stat_indi]) ?>
48        <?= view('components/checkbox', ['label' => I18N::translate('Total surnames'), 'name' => 'stat_surname', 'checked' => (bool) $stat_surname]) ?>
49        <?= view('components/checkbox', ['label' => I18N::translate('Families'), 'name' => 'stat_fam', 'checked' => (bool) $stat_fam]) ?>
50        <?= view('components/checkbox', ['label' => I18N::translate('Sources'), 'name' => 'stat_sour', 'checked' => (bool) $stat_sour]) ?>
51        <?= view('components/checkbox', ['label' => I18N::translate('Media objects'), 'name' => 'stat_media', 'checked' => (bool) $stat_media]) ?>
52        <?= view('components/checkbox', ['label' => I18N::translate('Repositories'), 'name' => 'stat_repo', 'checked' => (bool) $stat_repo]) ?>
53        <?= view('components/checkbox', ['label' => I18N::translate('Total events'), 'name' => 'stat_events', 'checked' => (bool) $stat_events]) ?>
54        <?= view('components/checkbox', ['label' => I18N::translate('Total users'), 'name' => 'stat_users', 'checked' => (bool) $stat_users]) ?>
55        <?= view('components/checkbox', ['label' => I18N::translate('Earliest birth'), 'name' => 'stat_first_birth', 'checked' => (bool) $stat_first_birth]) ?>
56        <?= view('components/checkbox', ['label' => I18N::translate('Latest birth'), 'name' => 'stat_last_birth', 'checked' => (bool) $stat_last_birth]) ?>
57        <?= view('components/checkbox', ['label' => I18N::translate('Earliest death'), 'name' => 'stat_first_death', 'checked' => (bool) $stat_first_death]) ?>
58        <?= view('components/checkbox', ['label' => I18N::translate('Latest death'), 'name' => 'stat_last_death', 'checked' => (bool) $stat_last_death]) ?>
59        <?= view('components/checkbox', ['label' => I18N::translate('Individual who lived the longest'), 'name' => 'stat_long_life', 'checked' => (bool) $stat_long_life]) ?>
60        <?= view('components/checkbox', ['label' => I18N::translate('Average age at death'), 'name' => 'stat_avg_life', 'checked' => (bool) $stat_avg_life]) ?>
61        <?= view('components/checkbox', ['label' => I18N::translate('Family with the most children'), 'name' => 'stat_most_chil', 'checked' => (bool) $stat_most_chil]) ?>
62        <?= view('components/checkbox', ['label' => I18N::translate('Average number of children per family'), 'name' => 'stat_avg_chil', 'checked' => (bool) $stat_avg_chil]) ?>
63    </div>
64</div>
65
66<div class="mb-3">
67    <div class="row">
68        <div class="col-form-label col-sm-3">
69            <label for="show_common_surnames">
70                <?= I18N::translate('Surnames') ?>
71            </label>
72        </div>
73
74        <div class="col-sm-9">
75            <?= view('components/checkbox', ['label' => I18N::translate('Most common surnames'), 'name' => 'show_common_surnames', 'checked' => (bool) $show_common_surnames]) ?>
76        </div>
77    </div>
78
79    <div class="row">
80        <label class="col-form-label col-sm-3">
81            <label for="number_of_surnames">
82                <?= /* I18N: ... to show in a list */I18N::translate('Number of surnames') ?>
83            </label>
84        </label>
85        <div class="col-sm-9">
86            <input class="form-control" id="number_of_surnames" name="number_of_surnames" min="1" required type="number" value="<?= e($number_of_surnames) ?>">
87        </div>
88    </div>
89</div>
90