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