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