xref: /webtrees/resources/views/admin/import-progress.phtml (revision 72cf66d48ef1f917238d9b0939a8aa33f257e274)
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->getName()]) ?>", {});
19</script>
20