xref: /webtrees/resources/views/admin/import-progress.phtml (revision 84586c024c68dbfa3b15df636ed2b74037428442)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<div class="progress" id="progress<?= e($tree->getTreeId()) ?>">
4    <div
5        class="progress-bar"
6        role="progressbar"
7        aria-valuenow="<?= $progress * 100 ?>"
8        aria-valuemin="0"
9        aria-valuemax="100"
10        style="width: <?= $progress * 100 ?>%; min-width: 40px;"
11    >
12        <?= I18N::percentage($progress, 1) ?>
13    </div>
14</div>
15
16<script>
17  $("#import<?= e($tree->getTreeId()) ?>")
18      .load("<?= route('import', ['ged' => $tree->getName()]) ?>", {});
19</script>
20