xref: /webtrees/resources/views/admin/tags.phtml (revision 77ec689ac7635fa165b51eae2ecad902a084c986)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Contracts\ElementFactoryInterface;
6use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
7use Fisharebest\Webtrees\Http\RequestHandlers\SiteTagsAction;
8use Fisharebest\Webtrees\I18N;
9use Fisharebest\Webtrees\Site;
10
11/**
12 * @var array<string>           $all_family_tags
13 * @var array<string>           $all_individual_tags
14 * @var array<string>           $custom_family_tags
15 * @var bool                    $custom_gedcom_l_tags
16 * @var array<string>           $custom_individual_tags
17 * @var bool                    $custom_fam_fact
18 * @var bool                    $custom_fam_nchi
19 * @var bool                    $custom_resi_value
20 * @var bool                    $custom_time_tags
21 * @var ElementFactoryInterface $element_factory
22 * @var string                  $title
23 */
24
25?>
26
27<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?>
28
29<h1><?= $title ?></h1>
30
31<form method="post" action="<?= e(route(SiteTagsAction::class)) ?>" class="form">
32    <h2><?= I18N::translate('Standard GEDCOM tags') ?></h2>
33
34    <p>
35        <?= I18N::translate('The GEDCOM standard provides a large number of data-entry fields, called tags.') ?>
36        <br>
37        <?= I18N::translate('Some of these GEDCOM tags are used infrequently or never used.') ?>
38        <br>
39        <?= I18N::translate('You can simplify the edit forms by hiding GEDCOM tags that you do not use.') ?>
40    </p>
41
42    <h3><?= I18N::translate('Names') ?></h3>
43
44    <table class="table table-bordered">
45        <colgroup>
46            <col class="w-25">
47            <col class="w-25">
48            <col class="w-25">
49        </colgroup>
50
51        <thead class="d-none">
52            <tr>
53                <th><?= I18N::translate('Description') ?></th>
54                <th><?= I18N::translate('GEDCOM tag') ?></th>
55                <th><?= I18N::translate('Hide GEDCOM tags') ?></th>
56            </tr>
57        </thead>
58
59        <tbody>
60            <tr>
61                <td>
62                    <?= $element_factory->make('INDI:NAME:NPFX')->label() ?>
63                </td>
64
65                <td>
66                    <code dir="ltr">NAME:NPFX</code>
67                </td>
68
69                <td>
70                    <?= view('components/checkbox-inline', ['name' => 'HIDE_NAME_NPFX', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_NPFX')]) ?>
71                </td>
72            </tr>
73
74            <tr>
75                <td>
76                    <?= $element_factory->make('INDI:NAME:SPFX')->label() ?>
77                </td>
78
79                <td>
80                    <code dir="ltr">NAME:SPFX</code>
81                </td>
82
83                <td>
84                    <?= view('components/checkbox-inline', ['name' => 'HIDE_NAME_SPFX', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_SPFX')]) ?>
85                </td>
86            </tr>
87
88            <tr>
89                <td>
90                    <?= $element_factory->make('INDI:NAME:NSFX')->label() ?>
91                </td>
92
93                <td>
94                    <code dir="ltr">NAME:NSFX</code>
95                </td>
96
97                <td>
98                    <?= view('components/checkbox-inline', ['name' => 'HIDE_NAME_NSFX', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_NSFX')]) ?>
99                </td>
100            </tr>
101
102            <tr>
103                <td>
104                    <?= $element_factory->make('INDI:NAME:NICK')->label() ?>
105                </td>
106                <td>
107                    <code dir="ltr">NAME:NICK</code>
108                </td>
109                <td>
110                    <?= view('components/checkbox-inline', ['name' => 'HIDE_NAME_NICK', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_NICK')]) ?>
111                </td>
112            </tr>
113
114            <tr>
115                <td>
116                    <?= $element_factory->make('INDI:NAME:FONE')->label() ?>
117                </td>
118
119                <td>
120                    <code dir="ltr">NAME:FONE</code>
121                </td>
122
123                <td>
124                    <?= view('components/checkbox-inline', ['name' => 'HIDE_NAME_FONE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_FONE')]) ?>
125                </td>
126            </tr>
127
128            <tr>
129                <td>
130                    <?= $element_factory->make('INDI:NAME:ROMN')->label() ?>
131                </td>
132
133                <td>
134                    <code dir="ltr">NAME:ROMN</code>
135                </td>
136
137                <td>
138                    <?= view('components/checkbox-inline', ['name' => 'HIDE_NAME_ROMN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_ROMN')]) ?>
139                </td>
140            </tr>
141
142            <tr>
143                <td>
144                    <?= $element_factory->make('INDI:NAME:NOTE')->label() ?>
145                </td>
146
147                <td>
148                    <code dir="ltr">NAME:NOTE</code>
149                </td>
150
151                <td>
152                    <?= view('components/checkbox-inline', ['name' => 'HIDE_NAME_NOTE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_NOTE')]) ?>
153                </td>
154            </tr>
155
156            <tr>
157                <td>
158                    <?= $element_factory->make('INDI:NAME:SOUR')->label() ?>
159                </td>
160
161                <td>
162                    <code dir="ltr">NAME:SOUR</code>
163                </td>
164
165                <td>
166                    <?= view('components/checkbox-inline', ['name' => 'HIDE_NAME_SOUR', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_SOUR')]) ?>
167                </td>
168            </tr>
169        </tbody>
170    </table>
171
172    <h3><?= I18N::translate('Places') ?></h3>
173
174    <table class="table table-bordered">
175        <colgroup>
176            <col class="w-25">
177            <col class="w-25">
178            <col class="w-25">
179        </colgroup>
180
181        <thead class="d-none">
182            <tr>
183                <th><?= I18N::translate('Description') ?></th>
184                <th><?= I18N::translate('GEDCOM tag') ?></th>
185                <th><?= I18N::translate('Hide GEDCOM tags') ?></th>
186            </tr>
187        </thead>
188
189        <tbody>
190            <tr>
191                <td>
192                    <?= $element_factory->make('INDI:*:PLAC:MAP')->label() ?>
193                </td>
194
195                <td>
196                    <code dir="ltr">PLAC:MAP</code>
197                </td>
198
199                <td>
200                    <?= view('components/checkbox-inline', ['name' => 'HIDE_PLAC_MAP', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_PLAC_MAP')]) ?>
201                </td>
202            </tr>
203
204            <tr>
205                <td>
206                    <?= $element_factory->make('INDI:*:PLAC:FONE')->label() ?>
207                </td>
208
209                <td>
210                    <code dir="ltr">PLAC:FONE</code>
211                </td>
212
213                <td>
214                    <?= view('components/checkbox-inline', ['name' => 'HIDE_PLAC_FONE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_PLAC_FONE')]) ?>
215                </td>
216            </tr>
217
218            <tr>
219                <td>
220                    <?= $element_factory->make('INDI:*:PLAC:ROMN')->label() ?>
221                </td>
222
223                <td>
224                    <code dir="ltr">PLAC:ROMN</code>
225                </td>
226
227                <td>
228                    <?= view('components/checkbox-inline', ['name' => 'HIDE_PLAC_ROMN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_PLAC_ROMN')]) ?>
229                </td>
230            </tr>
231
232            <tr>
233                <td>
234                    <?= $element_factory->make('INDI:*:PLAC:NOTE')->label() ?>
235                </td>
236
237                <td>
238                    <code dir="ltr">PLAC:NOTE</code>
239                </td>
240
241                <td>
242                    <?= view('components/checkbox-inline', ['name' => 'HIDE_PLAC_NOTE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_PLAC_NOTE')]) ?>
243                </td>
244            </tr>
245
246            <tr>
247                <td>
248                    <?= $element_factory->make('INDI:*:PLAC:FORM')->label() ?>
249                </td>
250
251                <td>
252                    <code dir="ltr">PLAC:FORM</code>
253                    <br>
254                    <code dir="ltr">HEAD:PLAC</code>
255                </td>
256
257                <td>
258                    <?= view('components/checkbox-inline', ['name' => 'HIDE_PLAC_FORM', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_PLAC_FORM')]) ?>
259                </td>
260            </tr>
261        </tbody>
262    </table>
263
264    <h3><?= I18N::translate('Addresses') ?></h3>
265
266    <table class="table table-bordered">
267        <colgroup>
268            <col class="w-25">
269            <col class="w-25">
270            <col class="w-25">
271        </colgroup>
272
273        <thead class="d-none">
274            <tr>
275                <th><?= I18N::translate('Description') ?></th>
276                <th><?= I18N::translate('GEDCOM tag') ?></th>
277                <th><?= I18N::translate('Hide GEDCOM tags') ?></th>
278            </tr>
279        </thead>
280
281        <tbody>
282            <tr>
283                <td>
284                    <?= $element_factory->make('INDI:RESI:PHON')->label() ?>
285                </td>
286
287                <td>
288                    <code dir="ltr">PHON</code>
289                </td>
290
291                <td>
292                    <?= view('components/checkbox-inline', ['name' => 'HIDE_ADDR_PHON', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_ADDR_PHON')]) ?>
293                </td>
294            </tr>
295
296            <tr>
297                <td>
298                    <?= $element_factory->make('INDI:RESI:WWW')->label() ?>
299                </td>
300
301                <td>
302                    <code dir="ltr">WWW</code>
303                </td>
304
305                <td>
306                    <?= view('components/checkbox-inline', ['name' => 'HIDE_ADDR_WWW', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_ADDR_WWW')]) ?>
307                </td>
308            </tr>
309
310            <tr>
311                <td>
312                    <?= $element_factory->make('INDI:RESI:EMAIL')->label() ?>
313                </td>
314
315                <td>
316                    <code dir="ltr">EMAIL</code>
317                </td>
318
319                <td>
320                    <?= view('components/checkbox-inline', ['name' => 'HIDE_ADDR_EMAIL', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_ADDR_EMAIL')]) ?>
321                </td>
322            </tr>
323        </tbody>
324    </table>
325
326    <h3><?= I18N::translate('Source citations') ?></h3>
327
328    <table class="table table-bordered">
329        <colgroup>
330            <col class="w-25">
331            <col class="w-25">
332            <col class="w-25">
333        </colgroup>
334
335        <thead class="d-none">
336            <tr>
337                <th><?= I18N::translate('Description') ?></th>
338                <th><?= I18N::translate('GEDCOM tag') ?></th>
339                <th><?= I18N::translate('Hide GEDCOM tags') ?></th>
340            </tr>
341        </thead>
342
343        <tbody>
344            <tr>
345                <td>
346                    <?= $element_factory->make('INDI:SOUR:EVEN')->label() ?>
347                </td>
348
349                <td>
350                    <code dir="ltr">SOUR:EVEN</code>
351                </td>
352
353                <td>
354                    <?= view('components/checkbox-inline', ['name' => 'HIDE_SOUR_EVEN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_SOUR_EVEN')]) ?>
355                </td>
356            </tr>
357
358            <tr>
359                <td>
360                    <?= $element_factory->make('INDI:SOUR:DATA:DATE')->label() ?>
361                </td>
362                <td>
363                    <code dir="ltr">SOUR:DATA:DATE</code>
364                </td>
365
366                <td>
367                    <?= view('components/checkbox-inline', ['name' => 'HIDE_SOUR_DATE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_SOUR_DATE')]) ?>
368                </td>
369            </tr>
370
371            <tr>
372                <td>
373                    <?= $element_factory->make('INDI:SOUR:NOTE')->label() ?>
374                </td>
375
376                <td>
377                    <code dir="ltr">SOUR:NOTE</code>
378                </td>
379
380                <td>
381                    <?= view('components/checkbox-inline', ['name' => 'HIDE_SOUR_NOTE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_SOUR_NOTE')]) ?>
382                </td>
383            </tr>
384
385            <tr>
386                <td>
387                    <?= $element_factory->make('INDI:SOUR:QUAY')->label() ?>
388                </td>
389
390                <td>
391                    <code dir="ltr">SOUR:QUAY</code>
392                </td>
393
394                <td>
395                    <?= view('components/checkbox-inline', ['name' => 'HIDE_SOUR_QUAY', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_SOUR_QUAY')]) ?>
396                </td>
397            </tr>
398        </tbody>
399    </table>
400
401    <h3><?= I18N::translate('Sources') ?></h3>
402
403    <table class="table table-bordered">
404        <colgroup>
405            <col class="w-25">
406            <col class="w-25">
407            <col class="w-25">
408        </colgroup>
409
410        <thead class="d-none">
411            <tr>
412                <th><?= I18N::translate('Description') ?></th>
413                <th><?= I18N::translate('GEDCOM tag') ?></th>
414                <th><?= I18N::translate('Hide GEDCOM tags') ?></th>
415            </tr>
416        </thead>
417
418        <tbody>
419            <tr>
420                <td>
421                    <?= $element_factory->make('SOUR:DATA')->label() ?>
422                </td>
423
424                <td>
425                    <code dir="ltr">SOUR:DATA:EVEN</code>
426                    <br>
427                    <code dir="ltr">SOUR:DATA:AGNC</code>
428                    <br>
429                    <code dir="ltr">SOUR:DATA:NOTE</code>
430                    <br>
431                </td>
432
433                <td>
434                    <?= view('components/checkbox-inline', ['name' => 'HIDE_SOUR_DATA', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_SOUR_DATA')]) ?>
435                </td>
436            </tr>
437        </tbody>
438    </table>
439
440    <h3><?= I18N::translate('Facts and events') ?></h3>
441
442    <table class="table table-bordered">
443        <colgroup>
444            <col class="w-25">
445            <col class="w-25">
446            <col class="w-25">
447        </colgroup>
448
449        <thead class="d-none">
450            <tr>
451                <th><?= I18N::translate('Description') ?></th>
452                <th><?= I18N::translate('GEDCOM tag') ?></th>
453                <th><?= I18N::translate('Hide GEDCOM tags') ?></th>
454            </tr>
455        </thead>
456
457        <tbody>
458            <tr>
459                <td>
460                    <?= $element_factory->make('INDI:BIRT:FAMC')->label() ?>
461                </td>
462
463                <td>
464                    <code dir="ltr">INDI:BIRT:FAMC</code>
465                </td>
466
467                <td>
468                    <?= view('components/checkbox-inline', ['name' => 'HIDE_BIRT_FAMC', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_BIRT_FAMC')]) ?>
469                </td>
470            </tr>
471
472            <tr>
473                <td>
474                    <?= $element_factory->make('INDI:RELI')->label() ?>
475                </td>
476
477                <td>
478                    <code dir="ltr">INDI:RELI</code>
479                </td>
480
481                <td>
482                    <?= view('components/checkbox-inline', ['name' => 'HIDE_RELI', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_RELI')]) ?>
483                </td>
484            </tr>
485
486            <tr>
487                <td>
488                    <?= $element_factory->make('INDI:BAPM')->label() ?>
489                </td>
490
491                <td>
492                    <code dir="ltr">INDI:BAPM</code>
493                </td>
494
495                <td>
496                    <?= view('components/checkbox-inline', ['name' => 'HIDE_BAPM', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_BAPM')]) ?>
497                </td>
498            </tr>
499
500            <tr>
501                <td>
502                    <?= $element_factory->make('INDI:CHR')->label() ?>
503                    <br>
504                    <?= $element_factory->make('INDI:CHRA')->label() ?>
505                </td>
506
507                <td>
508                    <code dir="ltr">INDI:CHR</code>
509                    <br>
510                    <code dir="ltr">INDI:CHRA</code>
511                </td>
512
513                <td>
514                    <?= view('components/checkbox-inline', ['name' => 'HIDE_CHR', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_CHR')]) ?>
515                </td>
516            </tr>
517
518            <tr>
519                <td>
520                    <?= $element_factory->make('INDI:FCOM')->label() ?>
521                    <br>
522                    <?= $element_factory->make('INDI:CONF')->label() ?>
523                </td>
524
525                <td>
526                    <code dir="ltr">INDI:FCOM</code>
527                    <br>
528                    <code dir="ltr">INDI:CONF</code>
529                </td>
530
531                <td>
532                    <?= view('components/checkbox-inline', ['name' => 'HIDE_FCOM', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_FCOM')]) ?>
533                </td>
534            </tr>
535
536            <tr>
537                <td>
538                    <?= $element_factory->make('INDI:ORDN')->label() ?>
539                </td>
540
541                <td>
542                    <code dir="ltr">INDI:ORDN</code>
543                </td>
544
545                <td>
546                    <?= view('components/checkbox-inline', ['name' => 'HIDE_ORDN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_ORDN')]) ?>
547                </td>
548            </tr>
549
550            <tr>
551                <td>
552                    <?= $element_factory->make('INDI:BARM')->label() ?>
553                    <br>
554                    <?= $element_factory->make('INDI:BASM')->label() ?>
555                </td>
556
557                <td>
558                    <code dir="ltr">INDI:BARM</code>
559                    <br>
560                    <code dir="ltr">INDI:BASM</code>
561                </td>
562
563                <td>
564                    <?= view('components/checkbox-inline', ['name' => 'HIDE_BARM', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_BARM')]) ?>
565                </td>
566            </tr>
567
568            <tr>
569                <td>
570                    <?= $element_factory->make('INDI:ALIA')->label() ?>
571                </td>
572
573                <td>
574                    <code dir="ltr">INDI:ALIA</code>
575                </td>
576
577                <td>
578                    <?= view('components/checkbox-inline', ['name' => 'HIDE_ALIA', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_ALIA')]) ?>
579                </td>
580            </tr>
581
582            <tr>
583                <td>
584                    <?= $element_factory->make('INDI:ASSO')->label() ?>
585                </td>
586
587                <td>
588                    <code dir="ltr">INDI:ASSO</code>
589                </td>
590
591                <td>
592                    <?= view('components/checkbox-inline', ['name' => 'HIDE_ASSO', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_ASSO')]) ?>
593                </td>
594            </tr>
595
596            <tr>
597                <td>
598                    <?= $element_factory->make('FAM:ENGA')->label() ?>
599                </td>
600
601                <td>
602                    <code dir="ltr">FAM:ENGA</code>
603                </td>
604
605                <td>
606                    <?= view('components/checkbox-inline', ['name' => 'HIDE_ENGA', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_ENGA')]) ?>
607                </td>
608            </tr>
609
610            <tr>
611                <td>
612                    <?= $element_factory->make('FAM:MARB')->label() ?>
613                </td>
614
615                <td>
616                    <code dir="ltr">FAM:MARB</code>
617                </td>
618
619                <td>
620                    <?= view('components/checkbox-inline', ['name' => 'HIDE_MARB', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_MARB')]) ?>
621                </td>
622            </tr>
623
624            <tr>
625                <td>
626                    <?= $element_factory->make('FAM:MARC')->label() ?>
627                </td>
628
629                <td>
630                    <code dir="ltr">FAM:MARC</code>
631                </td>
632
633                <td>
634                    <?= view('components/checkbox-inline', ['name' => 'HIDE_MARC', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_MARC')]) ?>
635                </td>
636            </tr>
637
638            <tr>
639                <td>
640                    <?= $element_factory->make('FAM:MARL')->label() ?>
641                </td>
642
643                <td>
644                    <code dir="ltr">FAM:MARL</code>
645                </td>
646
647                <td>
648                    <?= view('components/checkbox-inline', ['name' => 'HIDE_MARL', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_MARL')]) ?>
649                </td>
650            </tr>
651
652            <tr>
653                <td>
654                    <?= $element_factory->make('FAM:MARS')->label() ?>
655                </td>
656
657                <td>
658                    <code dir="ltr">FAM:MARS</code>
659                </td>
660
661                <td>
662                    <?= view('components/checkbox-inline', ['name' => 'HIDE_MARS', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_MARS')]) ?>
663                </td>
664            </tr>
665
666            <tr>
667                <td>
668                    <?= $element_factory->make('FAM:ANUL')->label() ?>
669                </td>
670
671                <td>
672                    <code dir="ltr">FAM:ANUL</code>
673                </td>
674
675                <td>
676                    <?= view('components/checkbox-inline', ['name' => 'HIDE_ANUL', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_ANUL')]) ?>
677                </td>
678            </tr>
679
680            <tr>
681                <td>
682                    <?= $element_factory->make('FAM:DIVF')->label() ?>
683                </td>
684
685                <td>
686                    <code dir="ltr">FAM:DIVF</code>
687                </td>
688
689                <td>
690                    <?= view('components/checkbox-inline', ['name' => 'HIDE_DIVF', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_DIVF')]) ?>
691                </td>
692            </tr>
693
694            <tr>
695                <td>
696                    <?= $element_factory->make('FAM:RESI')->label() ?>
697                </td>
698
699                <td>
700                    <code dir="ltr">FAM:RESI</code>
701                </td>
702
703                <td>
704                    <?= view('components/checkbox-inline', ['name' => 'HIDE_FAM_RESI', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_FAM_RESI')]) ?>
705                </td>
706            </tr>
707
708            <tr>
709                <td>
710                    <?= $element_factory->make('FAM:CENS')->label() ?>
711                </td>
712
713                <td>
714                    <code dir="ltr">FAM:CENS</code>
715                </td>
716
717                <td>
718                    <?= view('components/checkbox-inline', ['name' => 'HIDE_FAM_CENS', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_FAM_CENS')]) ?>
719                </td>
720            </tr>
721        </tbody>
722    </table>
723
724    <h3><?= I18N::translate('LDS church') ?></h3>
725
726    <table class="table table-bordered">
727        <colgroup>
728            <col class="w-25">
729            <col class="w-25">
730            <col class="w-25">
731        </colgroup>
732
733        <thead class="d-none">
734            <tr>
735                <th><?= I18N::translate('Description') ?></th>
736                <th><?= I18N::translate('GEDCOM tag') ?></th>
737                <th><?= I18N::translate('Hide GEDCOM tags') ?></th>
738            </tr>
739        </thead>
740
741        <tbody>
742            <tr>
743                <td>
744                    <?= $element_factory->make('INDI:BAPL')->label() ?>
745                    <br>
746                    <?= $element_factory->make('INDI:CONL')->label() ?>
747                    <br>
748                    <?= $element_factory->make('INDI:ENDL')->label() ?>
749                    <br>
750                    <?= $element_factory->make('INDI:SLGC')->label() ?>
751                    <br>
752                    <?= $element_factory->make('FAM:SLGS')->label() ?>
753                    <br>
754                    <?= $element_factory->make('HEAD:SUBN')->label() ?>
755                </td>
756
757                <td>
758                    <code dir="ltr">INDI:BAPL</code>
759                    <br>
760                    <code dir="ltr">INDI:CONL</code>
761                    <br>
762                    <code dir="ltr">INDI:ENDL</code>
763                    <br>
764                    <code dir="ltr">INDI:SLGC</code>
765                    <br>
766                    <code dir="ltr">FAM:SLGS</code>
767                    <br>
768                    <code dir="ltr">HEAD:SUBN</code>
769                </td>
770
771                <td>
772                    <?= view('components/checkbox-inline', ['name' => 'HIDE_LDS', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_LDS')]) ?>
773                </td>
774            </tr>
775        </tbody>
776    </table>
777
778    <h3><?= I18N::translate('Identifiers') ?></h3>
779
780    <table class="table table-bordered">
781        <colgroup>
782            <col class="w-25">
783            <col class="w-25">
784            <col class="w-25">
785        </colgroup>
786
787        <thead class="d-none">
788            <tr>
789                <th><?= I18N::translate('Description') ?></th>
790                <th><?= I18N::translate('GEDCOM tag') ?></th>
791                <th><?= I18N::translate('Hide GEDCOM tags') ?></th>
792            </tr>
793        </thead>
794
795        <tbody>
796            <tr>
797                <td>
798                    <?= $element_factory->make('INDI:AFN')->label() ?>
799                </td>
800
801                <td>
802                    <code dir="ltr">INDI:AFN</code>
803                </td>
804
805                <td>
806                    <?= view('components/checkbox-inline', ['name' => 'HIDE_AFN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_AFN')]) ?>
807                </td>
808            </tr>
809
810            <tr>
811                <td>
812                    <?= $element_factory->make('INDI:IDNO')->label() ?>
813                </td>
814
815                <td>
816                    <code dir="ltr">INDI:IDNO</code>
817                </td>
818
819                <td>
820                    <?= view('components/checkbox-inline', ['name' => 'HIDE_IDNO', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_IDNO')]) ?>
821                </td>
822            </tr>
823
824            <tr>
825                <td>
826                    <?= $element_factory->make('INDI:SSN')->label() ?>
827                </td>
828
829                <td>
830                    <code dir="ltr">INDI:SSN</code>
831                </td>
832
833                <td>
834                    <?= view('components/checkbox-inline', ['name' => 'HIDE_SSN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_SSN')]) ?>
835                </td>
836            </tr>
837
838            <tr>
839                <td>
840                    <?= $element_factory->make('INDI:RFN')->label() ?>
841                </td>
842
843                <td>
844                    <code dir="ltr">INDI:RFN</code>
845                </td>
846
847                <td>
848                    <?= view('components/checkbox-inline', ['name' => 'HIDE_RFN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_RFN')]) ?>
849                </td>
850            </tr>
851
852            <tr>
853                <td>
854                    <?= $element_factory->make('INDI:REFN')->label() ?>
855                </td>
856
857                <td>
858                    <code dir="ltr">*:REFN</code>
859                </td>
860
861                <td>
862                    <?= view('components/checkbox-inline', ['name' => 'HIDE_REFN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_REFN')]) ?>
863                </td>
864            </tr>
865
866            <tr>
867                <td>
868                    <?= $element_factory->make('INDI:RIN')->label() ?>
869                </td>
870
871                <td>
872                    <code dir="ltr">*:RIN</code>
873                </td>
874
875                <td>
876                    <?= view('components/checkbox-inline', ['name' => 'HIDE_RIN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_RIN')]) ?>
877                </td>
878            </tr>
879        </tbody>
880    </table>
881
882    <h3><?= I18N::translate('Submitters') ?></h3>
883
884    <table class="table table-bordered">
885        <colgroup>
886            <col class="w-25">
887            <col class="w-25">
888            <col class="w-25">
889        </colgroup>
890
891        <thead class="d-none">
892            <tr>
893                <th><?= I18N::translate('Description') ?></th>
894                <th><?= I18N::translate('GEDCOM tag') ?></th>
895                <th><?= I18N::translate('Hide GEDCOM tags') ?></th>
896            </tr>
897        </thead>
898
899        <tbody>
900            <tr>
901                <td>
902                    <?= $element_factory->make('INDI:SUBM')->label() ?>
903                </td>
904
905                <td>
906                    <code dir="ltr">INDI:SUBM</code>
907                    <br>
908                    <code dir="ltr">FAM:SUBM</code>
909                </td>
910
911                <td>
912                    <?= view('components/checkbox-inline', ['name' => 'HIDE_SUBM', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_SUBM')]) ?>
913                </td>
914            </tr>
915
916            <tr>
917                <td>
918                    <?= $element_factory->make('INDI:ANCI')->label() ?>
919                    <br>
920                    <?= $element_factory->make('INDI:DESI')->label() ?>
921                </td>
922
923                <td>
924                    <code dir="ltr">INDI:ANCI</code>
925                    <br>
926                    <code dir="ltr">INDI:DESI</code>
927                </td>
928
929                <td>
930                    <?= view('components/checkbox-inline', ['name' => 'HIDE_ANCI', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_ANCI')]) ?>
931                </td>
932            </tr>
933        </tbody>
934    </table>
935
936    <h2><?= I18N::translate('GEDCOM 7') ?></h2>
937
938    <p>
939        <?= I18N::translate('The next version of the GEDCOM standard will add new tags and remove old ones. You can use some of the new tags now.'); ?>
940    </p>
941
942    <table class="table table-bordered">
943        <colgroup>
944            <col class="w-25">
945            <col class="w-25">
946            <col class="w-25">
947        </colgroup>
948
949        <thead class="d-none">
950        <tr>
951            <th><?= I18N::translate('Description') ?></th>
952            <th><?= I18N::translate('GEDCOM tag') ?></th>
953            <th><?= I18N::translate('Hide GEDCOM tags') ?></th>
954        </tr>
955        </thead>
956
957        <tbody>
958            <tr>
959                <td>
960                    <?= I18N::translate('Time of birth and time of death') ?>
961                </td>
962
963                <td>
964                    <code dir="ltr">INDI:BIRT:DATE:TIME</code>
965                    <br>
966                    <code dir="ltr">INDI:DEAT:DATE:TIME</code>
967                </td>
968
969                <td>
970                    <?= view('components/checkbox', ['id' => 'custom_time_tags', 'name' => 'custom_time_tags', 'label' => I18N::translate('show'), 'checked' => $custom_time_tags]) ?>
971                </td>
972            </tr>
973
974            <tr>
975                <td>
976                    <?= I18N::translate('Family fact') ?>
977                </td>
978
979                <td>
980                    <code dir="ltr">FAM:FACT</code>
981                </td>
982
983                <td>
984                    <?= view('components/checkbox', ['id' => 'custom_fam_fact', 'name' => 'custom_fam_fact', 'label' => I18N::translate('show'), 'checked' => $custom_fam_fact]) ?>
985                </td>
986            </tr>
987
988            <tr>
989                <td>
990                    <?= I18N::translate('Number of children') ?>
991                </td>
992
993                <td>
994                    <code dir="ltr">FAM:NCHI:*</code>
995                </td>
996
997                <td>
998                    <?= view('components/checkbox', ['id' => 'custom_fam_nchi', 'name' => 'custom_fam_nchi', 'label' => I18N::translate('show'), 'checked' => $custom_fam_nchi]) ?>
999                </td>
1000            </tr>
1001
1002            <tr>
1003                <td>
1004                    <?= I18N::translate('Residence') ?>
1005                </td>
1006
1007                <td>
1008                    <code dir="ltr">FAM:RESI …</code>
1009                    <br>
1010                    <code dir="ltr">INDI:RESI …</code>
1011                </td>
1012
1013                <td>
1014                    <?= view('components/checkbox', ['id' => 'custom_resi_value', 'name' => 'custom_resi_value', 'label' => I18N::translate('show'), 'checked' => $custom_resi_value]) ?>
1015                </td>
1016            </tr>
1017        </tbody>
1018    </table>
1019
1020    <h2><?= I18N::translate('Custom GEDCOM tags') ?></h2>
1021
1022    <p>
1023        <?= I18N::translate('Many genealogy applications define their own custom GEDCOM tags and webtrees will be able to display most of them.') ?>
1024        <br>
1025        <?= I18N::translate('It is not recommended to use custom GEDCOM tags. This data can be lost when you transfer it to other applications.') ?>
1026        <br>
1027        <?= I18N::translate('To create new data using custom tags, you need to enable them.') ?>
1028    </p>
1029
1030    <div class="row mb-3">
1031        <label class="col-sm-3" for="custom_individual_tags">
1032            <?= I18N::translate('Individual facts and events') ?>
1033        </label>
1034
1035        <div class="col-sm-9">
1036            <?= view('components/select', ['class' => 'tom-select', 'id' => 'custom_individual_tags', 'name' => 'custom_individual_tags[]', 'options' => $all_individual_tags, 'selected' => $custom_individual_tags]) ?>
1037        </div>
1038    </div>
1039
1040    <div class="row mb-3">
1041        <label class="col-sm-3" for="custom_family_tags">
1042            <?= I18N::translate('Family facts and events') ?>
1043        </label>
1044
1045        <div class="col-sm-9">
1046            <?= view('components/select', ['class' => 'tom-select', 'id' => 'custom_family_tags', 'name' => 'custom_family_tags[]', 'options' => $all_family_tags, 'selected' => $custom_family_tags]) ?>
1047        </div>
1048    </div>
1049
1050    <div class="row mb-3">
1051        <label class="col-sm-3" for="custom_gedcom_l_tags">
1052            <?= /* I18N: https://genealogy.net/GEDCOM/ */ I18N::translate('GEDCOM-L') ?>
1053        </label>
1054
1055        <div class="col-sm-9">
1056            <?= view('components/checkbox', ['name' => 'custom_gedcom_l_tags', 'label' => I18N::translate('show'), 'checked' => $custom_gedcom_l_tags]) ?>
1057            <p>
1058                <?= I18N::translate('For more information, see %s.', '<a href="https://genealogy.net/GEDCOM/">https://genealogy.net/GEDCOM/</a>') ?>
1059            </p>
1060        </div>
1061    </div>
1062
1063    <div class="mb-3">
1064        <button type="submit" class="btn btn-primary">
1065            <?= view('icons/save') ?>
1066            <?= I18N::translate('save') ?>
1067        </button>
1068        <a class="btn btn-secondary" href="<?= e(route(ControlPanel::class)) ?>">
1069            <?= view('icons/cancel') ?>
1070            <?= I18N::translate('cancel') ?>
1071        </a>
1072    </div>
1073
1074    <?= csrf_field() ?>
1075</form>
1076