xref: /webtrees/resources/views/modules/gedcom_stats/config.phtml (revision 36de22acf6348b1059dac63e3cd19589574906ac)
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<fieldset class="form-group">
30    <div class="row">
31        <legend class="col-form-label col-sm-3">
32            <?= I18N::translate('Last change') ?>
33        </legend>
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</fieldset>
39
40<fieldset class="form-group">
41    <div class="row">
42        <legend class="col-form-label col-sm-3">
43            <?= I18N::translate('Statistics') ?>
44        </legend>
45        <div class="col-sm-9">
46            <?= view('components/checkbox', ['label' => I18N::translate('Individuals'), 'name' => 'stat_indi', 'checked' => (bool) $stat_indi]) ?>
47            <?= view('components/checkbox', ['label' => I18N::translate('Total surnames'), 'name' => 'stat_surname', 'checked' => (bool) $stat_surname]) ?>
48            <?= view('components/checkbox', ['label' => I18N::translate('Families'), 'name' => 'stat_fam', 'checked' => (bool) $stat_fam]) ?>
49            <?= view('components/checkbox', ['label' => I18N::translate('Sources'), 'name' => 'stat_sour', 'checked' => (bool) $stat_sour]) ?>
50            <?= view('components/checkbox', ['label' => I18N::translate('Media objects'), 'name' => 'stat_media', 'checked' => (bool) $stat_media]) ?>
51            <?= view('components/checkbox', ['label' => I18N::translate('Repositories'), 'name' => 'stat_repo', 'checked' => (bool) $stat_repo]) ?>
52            <?= view('components/checkbox', ['label' => I18N::translate('Total events'), 'name' => 'stat_events', 'checked' => (bool) $stat_events]) ?>
53            <?= view('components/checkbox', ['label' => I18N::translate('Total users'), 'name' => 'stat_users', 'checked' => (bool) $stat_users]) ?>
54            <?= view('components/checkbox', ['label' => I18N::translate('Earliest birth'), 'name' => 'stat_first_birth', 'checked' => (bool) $stat_first_birth]) ?>
55            <?= view('components/checkbox', ['label' => I18N::translate('Latest birth'), 'name' => 'stat_last_birth', 'checked' => (bool) $stat_last_birth]) ?>
56            <?= view('components/checkbox', ['label' => I18N::translate('Earliest death'), 'name' => 'stat_first_death', 'checked' => (bool) $stat_first_death]) ?>
57            <?= view('components/checkbox', ['label' => I18N::translate('Latest death'), 'name' => 'stat_last_death', 'checked' => (bool) $stat_last_death]) ?>
58            <?= view('components/checkbox', ['label' => I18N::translate('Individual who lived the longest'), 'name' => 'stat_long_life', 'checked' => (bool) $stat_long_life]) ?>
59            <?= view('components/checkbox', ['label' => I18N::translate('Average age at death'), 'name' => 'stat_avg_life', 'checked' => (bool) $stat_avg_life]) ?>
60            <?= view('components/checkbox', ['label' => I18N::translate('Family with the most children'), 'name' => 'stat_most_chil', 'checked' => (bool) $stat_most_chil]) ?>
61            <?= view('components/checkbox', ['label' => I18N::translate('Average number of children per family'), 'name' => 'stat_avg_chil', 'checked' => (bool) $stat_avg_chil]) ?>
62        </div>
63    </div>
64</fieldset>
65
66<fieldset class="form-group">
67    <div class="row">
68        <legend class="col-form-label col-sm-3">
69            <label for="show_common_surnames">
70                <?= I18N::translate('Surnames') ?>
71            </label>
72        </legend>
73        <div class="col-sm-9">
74            <?= view('components/checkbox', ['label' => I18N::translate('Most common surnames'), 'name' => 'show_common_surnames', 'checked' => (bool) $show_common_surnames]) ?>
75        </div>
76    </div>
77
78    <div class="row">
79        <label class="col-form-label col-sm-3">
80            <label for="number_of_surnames">
81                <?= /* I18N: ... to show in a list */
82                I18N::translate('Number of surnames') ?>
83            </label>
84        </label>
85        <div class="col-sm-9">
86            <input
87            class="form-control"
88            id="number_of_surnames"
89            name="number_of_surnames"
90            min="1"
91            required
92            type="number"
93            value="<?= e($number_of_surnames) ?>"
94            >
95        </div>
96    </div>
97</fieldset>
98