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