xref: /webtrees/resources/views/admin/import-progress.phtml (revision 8121b9bec19818120092699199161a1357bb8f3f)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<div class="progress" id="progress<?= e($tree->id()) ?>">
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->id()) ?>")
18      .load("<?= route('import', ['ged' => $tree->name()]) ?>", {});
19</script>
20