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