xref: /webtrees/resources/views/admin/synchronize-trees.phtml (revision 4a9a60957058ca2a34e30a0d6f783e1540606590)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Http\RequestHandlers\SynchronizeTrees;
6use Fisharebest\Webtrees\I18N;
7
8?>
9
10<div class="card mb-4">
11    <div class="card-header">
12        <h2 class="mb-0">
13            <?= view('icons/sync') ?>
14            <?= I18N::translate('Synchronize family trees with GEDCOM files') ?>
15        </h2>
16    </div>
17
18    <div class="card-body">
19        <p>
20            <?= I18N::translate('Create, update, and delete a family tree for every GEDCOM file in the data folder.') ?>
21        </p>
22        <form method="post" action="<?= e(route(SynchronizeTrees::class)) ?>" class="form form-horizontal">
23            <button type="submit" class="btn btn-danger">
24                <?= view('icons/sync') ?>
25                <?= /* I18N: A button label. */
26                I18N::translate('continue') ?>
27            </button>
28
29            <span class="text-muted">
30                <?= I18N::translate('Caution! This may take a long time. Be patient.') ?>
31            </span>
32
33            <?= csrf_field() ?>
34        </form>
35    </div>
36</div>
37